Skip to content
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]: type reasoning_effort #28825

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

baskaryan
Copy link
Collaborator

No description provided.

@baskaryan baskaryan requested review from efriis and ccurme December 19, 2024 19:18
Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Dec 19, 2024 7:33pm

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 19, 2024
Copy link
Collaborator

@ccurme ccurme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ignorant on this but what is state of o1 support in AzureChatOpenAI?

@@ -454,6 +454,16 @@ class BaseChatOpenAI(BaseChatModel):
"""Total probability mass of tokens to consider at each step."""
max_tokens: Optional[int] = Field(default=None)
"""Maximum number of tokens to generate."""
reasoning_effort: Optional[str] = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we type as literal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem super high value? esp if we care about being forwards compatible

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Dec 19, 2024
@baskaryan
Copy link
Collaborator Author

I'm ignorant on this but what is state of o1 support in AzureChatOpenAI?

not sure, but nothing gets passed unless explicitly specified

@baskaryan baskaryan enabled auto-merge (squash) December 19, 2024 19:34
@baskaryan baskaryan merged commit 1378ddf into master Dec 19, 2024
42 checks passed
@baskaryan baskaryan deleted the bagatur/oai_reasoning_effort branch December 19, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants