# \[grid\] 채팅의 AI 비전 기능

**URL:** https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890
**Category:** Bug
**Tags:** chat, ai, ai-bot
**Created:** [7월 28, 2024, 6:54오후 UTC](https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890 "2024-07-28T18:54:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [7월 28, 2024, 6:54오후 UTC](https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890/1 "2024-07-28T18:54:39Z")

</div>

채팅에서 GPT 봇에게 이미지를 요청했을 때를 보여주는 것이 더 쉽습니다:

 ![IMG_3456](https://global.discourse-cdn.com/meta/original/4X/0/a/c/0acbd4f8c07fc7f3805440201a22626648b7e61d.jpeg)

`[grid]`가 작동하지 않으며, 채팅의 특성상 작동하지 않는 것이 맞다고 생각합니다. 따라서 AI가 처음부터 이를 사용해서는 안 됩니다.

그러므로 이를 제거할 수 있을까요?

네, 정말 사소한 문제이며 아무것도 깨지지 않습니다. 그저 아름답지 않을 뿐입니다.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [7월 31, 2024, 6:41오전 UTC](https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890/3 "2024-07-31T06:41:37Z")

</div>

이 문제를 살펴보았는데, AI 쪽 수정은 사실 꽤 쉽습니다. 문제는 채팅 쪽도 함께 수정해야 한다는 점이에요 @zogstrip / @j.jaffeux

구체적으로 말하면, `[grid]`를 제거하면 상황이 좀 이상해집니다(상표 없음).

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/c/e/ece4c58a0b28b8a71388dad16ee0c768057578de.jpeg)

채팅에 공급되는 이런 블록의 경우:

`![유머러스한 일러스트레이션 스타일로 이미지를 생성하세요. 과장된 특징을 가진 만화 원숭이가 등장합니다. 원숭이는 생생한 색상의 하와이안 셔츠와 선글라스를 착용하고 있습니다. 낭비벽이 있는 이 캐릭터는 바나나를 마이크인 것처럼 들고 있으며 활짝 웃고 있습니다. 일러스트는 아동 도서에서 볼 수 있는 밝고 즐거운 색감을 특징으로 합니다. 배경에는 야자수와 눈부신 일몰이 있는 열대 해변이 묘사됩니다.](upload://6mq3rDixX44cdKzsXb2efl0GfwG.jpeg) ![비즈니스 수트를 입고 사무실 책상에 앉아 엄숙한 표정을 짓고 있는 사진 실사풍의 유머러스한 원숭이 이미지를 생성하세요. 책상에는 바나나 껍질이 흩어져 있고, 원숭이는 바나나를 전화기인 것처럼 귀에 대고 있습니다. 사무실 환경은 종이들이 날리는 혼란스러운 분위기를 연출하여 재미있는 대비를 만들어야 합니다.](upload://yLUEHwfiDZFeNeNgJmyi7YzD88q.jpeg) `

채팅 렌더링 결과:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/f/d/dfda8fd19b7a311082ec198a2f2419660cef367d.jpeg)

이것은 몇 가지 측면에서 문제가 됩니다.

1. 텍스트가 너무 많습니다.
2. 마크다운에서 첫 번째 이미지의 제목만 가져오기 때문에 혼란스럽습니다.
3. 링크를 클릭할 때 라이트박스가 사용되지 않아서 불편합니다.

텍스트를 앞에 붙여 다음과 같은 결과를 얻으면 버그를 피할 수 있습니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/b/e/1bebe4a521b92980b1d695491496b0acd768922f.jpeg)

하지만 이건 꽤 해킹적인 느낌이 듭니다.

…

그리드를 제거하여 수정하면 상황이 더 나빠집니다 ☹

* * *

또한, 고아 이미지(오래된 이미지)에 갇히지 않도록 이 경우 적절한 업로드 참조가 있는지 확인해야 하므로 상황이 더 악화됩니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [12월 30, 2024, 4:41오후 UTC](https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890/11 "2024-12-30T16:41:51Z")

</div>

확실히 @j.jaffeux가 다음에서 수정한 것 같습니다

> <https://github.com/discourse/discourse/pull/29658>
>
> This change will only prevent a cooked message with \`\[grid\]\` to show \`\[grid\]\`, i…nstead the content will be wrapped in \`div class="d-image-grid"\`. This is only enabled on messages made by bot, as regular users could use grid but have no reason to use it ATM, so it's ok to consider it as non supported markup for now. It will also not apply the decoration which shouldn't change the behavior more than just removing grid markup from the message.

이렇게 보입니다

 ![Screenshot 2024-12-30 at 17.37.25](https://global.discourse-cdn.com/meta/original/4X/0/3/1/031d847d3ddd72c607fbe71f846b9ed1727a69f1.jpeg)

라이트박스도 정상 작동합니다 👏

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [12월 30, 2024, 9:10오후 UTC](https://meta.discourse.org/t/grid-from-ai-vision-in-chat/318890/13 "2024-12-30T21:10:46Z")

</div>


