Json response_format with Code Interpreter

Hi there,

I’m currently using the Assistant API and have a question regarding the response_format setting. When the response format is set to JSON type (as detailed here: Assistant API Reference), it seems that all provided tools must be functions. Consequently, this setting restricts the use of code_interpreter as a tool choice.

Does anyone know if this limitation might be lifted in the future? Alternatively, are there any suggested workarounds that would allow the use of both settings together?

Thank you for any insights!

2 Likes

We are also suffering with this issue. Did you find any way around this?

For what it is worth, the 4xx models have been pretty good at generating JSON even without that setting, so for me when I need both I just resolve it with prompting. I do use the setting where I can. I do assume this will be solved in the future.