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: disable streaming for o1 by default #29147

Merged
merged 3 commits into from
Jan 11, 2025

Conversation

efriis
Copy link
Member

@efriis efriis commented Jan 11, 2025

Copy link

vercel bot commented Jan 11, 2025

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 Jan 11, 2025 2:19am

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 11, 2025
@efriis efriis enabled auto-merge (squash) January 11, 2025 02:12
@efriis efriis disabled auto-merge January 11, 2025 02:12
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 11, 2025
@efriis efriis enabled auto-merge (squash) January 11, 2025 02:19
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 11, 2025
@efriis efriis merged commit bbc3e3b into master Jan 11, 2025
42 checks passed
@efriis efriis deleted the erick/openai-disable-streaming-for-o1-by-default branch January 11, 2025 02:24
def validate_disable_streaming(cls, values: Dict[str, Any]) -> Any:
"""Disable streaming if n > 1."""
model = values.get("model_name") or values.get("model") or ""
if model == "o1" and values.get("disable_streaming") is None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this also check for like o1-2024-12-17?

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:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants