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

Increase timeout for reasoning models + make o1 available by default #3954

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Feb 10, 2025

Description

https://linear.app/danswer/issue/DAN-1436/different-timeout-for-reasoning-models

How Has This Been Tested?

Tested locally, previously timed out -> doesn't timeout anymore.

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

Copy link

vercel bot commented Feb 10, 2025

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

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 11:36pm

model_provider: str,
model_name: str,
timeout: int | None = None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

making these None by default and setting the default within the init to allow for more complicated logic here

@@ -29,11 +29,11 @@ class WellKnownLLMProviderDescriptor(BaseModel):
OPEN_AI_MODEL_NAMES = [
"o3-mini",
"o1-mini",
"o1-preview",
"o1-2024-12-17",
"o1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

o1 should be higher up than preview

"o1-mini": "O1 Mini",
"o1-preview": "O1 Preview",
o1: "O1",
"o1-2025-12-17": "o1 (December 2025)",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

matching case of OpenAI's docs/chatgpt

@Weves Weves merged commit 05b3e59 into main Feb 11, 2025
10 of 11 checks passed
@Weves Weves deleted the fix-o1-timeout branch February 11, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants