-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
openai[patch]: enable Azure structured output, parallel_tool_calls=Fa… #26599
Conversation
…lse, tool_choice=required
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Hi @baskaryan, thank you for addressing this issue and for your work on this! I tested the changes, and they work as expected for the I noticed that in your fix, In #26086, I proposed modifying Thanks again for your work and for considering my contribution! 😉 |
@@ -9,27 +9,39 @@ | |||
|
|||
from langchain_openai import AzureChatOpenAI | |||
|
|||
OPENAI_API_VERSION = os.environ.get("AZURE_OPENAI_API_VERSION", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran OpenAI integration tests on this branch and got failures related to env vars: https://github.com/langchain-ai/langchain/actions/runs/10924401318/job/30323353395
Also getting some failures here in json mode on master, suspect unrelated. Unable to reproduce so far.
FAILED tests/integration_tests/chat_models/test_azure.py::test_json_mode_async - openai.LengthFinishReasonError: Could not parse response content as the length limit was reached - CompletionUsage(completion_tokens=10, prompt_tokens=18, total_tokens=28, completion_tokens_details=None)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh thought id set that env var, will double check
the issue is that we want to extract |
langchain-ai#26599) …lse, tool_choice=required response_format=json_schema, tool_choice=required, parallel_tool_calls are all supported for gpt-4o on azure.
…lse, tool_choice=required
response_format=json_schema, tool_choice=required, parallel_tool_calls are all supported for gpt-4o on azure.