genkit-plugins icon indicating copy to clipboard operation
genkit-plugins copied to clipboard

Feature Request: support format: "json" in gpt models

Open cabljac opened this issue 1 year ago • 1 comments

Hi, I was using the OpenAI plugin a week ago and it didn't seem to support format: "json" in the gpt4 model (and others maybe)

Would be great to have this, some of my flows I want to switch between Gemini and GPT, and this would make it more seemless

cabljac avatar May 24 '24 06:05 cabljac

Thanks for opening the issue. Which model are you using specifically? Because both GPT-4o and GPT-4 Turbo should already support JSON, while GPT-4 and GPT-4 Vision do not support it

Dabolus avatar May 26 '24 06:05 Dabolus

oh I think I was using gpt4

cabljac avatar May 30 '24 15:05 cabljac

@cabljac I would suggest to use the GPT-4o model as it works better, costs less, and supports JSON mode. I'll close the issue, but feel free to re-open it if you encounter the problem also with GPT-4o

Dabolus avatar Jun 02 '24 08:06 Dabolus