You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
under the hood, the library that supports this validates the response and re-prompt the LLM if it doesn't follow the schema response. I understand that this library only implements what OpenAI support that's why my request is to use any for response_format type rather than ChatCompletionResponseFormat
Describe the solution you'd like
use any for ResponseFormat type instead of ChatCompletionResponseFormat which follows openAI spec (which is object)
Is your feature request related to a problem? Please describe.
Many OpenAI alternatives (such as anyscale) currently support
response_format.schema
in ChatCompletion request. The syntax looks likeunder the hood, the library that supports this validates the response and re-prompt the LLM if it doesn't follow the schema response. I understand that this library only implements what OpenAI support that's why my request is to use any for
response_format
type rather thanChatCompletionResponseFormat
Describe the solution you'd like
use any for ResponseFormat type instead of
ChatCompletionResponseFormat
which follows openAI spec (which is object)https://github.com/sashabaranov/go-openai/blob/eff8dc1118ea82a1b50ee316608e24d83df74d6b/chat.go#L196C20-L196C48
Additional context
Happy to send a PR if this is something @sashabaranov think it makes sense
The text was updated successfully, but these errors were encountered: