namankhurpia / Easy-open-ai

This repository contains the community-maintained library for OpenAI's API in java, the easiest way to use GPT 3/4 in your applications.
http://namank.xyz
MIT License
15 stars 3 forks source link

No JSON Mode implementation. #32

Closed etekmen13 closed 5 months ago

etekmen13 commented 5 months ago

You don't provide any examples or documentation on how to actually use the new .reponseFormat() extension method for the ChatCompletionRequest class. Looking through the source code doesn't give me any indication of how to use it either.

namankhurpia commented 5 months ago

Hi @etekmen13

kindly look at openai documentation (https://platform.openai.com/docs/api-reference/chat/create) , this repository is an API reference.

Let me know if you find any issues implementing it, you just need to pass it as a string.