Translate output functions

When I launch a function and submit tool outputs, I preconstruct the assistant’s response message in English, but I would like the assistant to determine the language of the user and automatically translate the preconstructed message.

How can I do this? Thank you.

something like ‘please recognize the language and translate it to english’ should do the trick… you don’t even need to use assistants on this, a simple api call with such prompt should do the trick

1 Like