sanity-io / assist

Sanity AI Assist: A plugin for Sanity Studio
MIT License
13 stars 5 forks source link

Image description generation in document language #45

Open staffanmowitz opened 6 months ago

staffanmowitz commented 6 months ago

Problem I'm using document level translations, and when using the image description generation, it only generates descriptions in English, not in the language of the current document.

Solution I would like the image description to use the current language of the document.

Alternatives My solution for handling this right now is to create custom instructions for translating the generated image description to my other languages. This is quite a cumbersome process since I have many image fields in multiple documents.

Screenshot 2024-05-17 at 10 31 39@2x

mheob commented 5 months ago

It is important to set the language of the AI output. For example, if I create a purely German page, the AI output must be in German for it to make any sense at all.