-
Notifications
You must be signed in to change notification settings - Fork 164
Add JSON schema support to Azure OpenAI models #1954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add supportedCapabilities() method to both AzureOpenAiChatModel and AzureOpenAiStreamingChatModel - Return RESPONSE_FORMAT_JSON_SCHEMA capability when responseFormat type is JSON - Support request-level ResponseFormat override from ChatRequest - Enables structured JSON output with schema validation for Azure OpenAI models (e.g., gpt-4o-2024-08-06) Fixes #1953
efc6596 to
8bcb365
Compare
|
Build errors seem to be caused by these two type clashes The following could work in theory After testing this a bit by setting the quarkus property I received the following So there seems to be something different still how |
|
Other issues with the following is that Unfortunately, However, the method |
|
The AI experiment I tried obviously failed miserably :) |
|
Fixed the compilation errors:
For now, this PR focuses on the core requirement from #1953: declaring The request-level ResponseFormat override can be added in a future PR once there's a public API in langchain4j for converting between the two ResponseFormat types. |
|
Let's see how well AI can perform this time 😆 |
|
@henkka14 can you give it another try? |
Uh oh!
There was an error while loading. Please reload this page.