-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: enable reasoning visibility for DeepSeek V3.1 and GLM-4.5 models #7372
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ export const deepSeekModels = { | |
| contextWindow: 128_000, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // DeepSeek V3.1 supports thinking/reasoning | ||
| inputPrice: 0.27, // $0.27 per million tokens (cache miss) | ||
| outputPrice: 1.1, // $1.10 per million tokens | ||
| cacheWritesPrice: 0.27, // $0.27 per million tokens (cache miss) | ||
|
|
@@ -22,6 +23,7 @@ export const deepSeekModels = { | |
| contextWindow: 128_000, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // DeepSeek-R1 supports thinking/reasoning | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor suggestion: For consistency, consider standardizing the comment wording across all models. Currently using "DeepSeek V3.1 supports thinking/reasoning" here and "DeepSeek-R1 supports thinking/reasoning" below. Perhaps just "supports reasoning" would be cleaner? |
||
| inputPrice: 0.55, // $0.55 per million tokens (cache miss) | ||
| outputPrice: 2.19, // $2.19 per million tokens | ||
| cacheWritesPrice: 0.55, // $0.55 per million tokens (cache miss) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ export const internationalZAiModels = { | |
| contextWindow: 131_072, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // GLM-4.5 supports thinking/reasoning | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to see both international and mainland configurations updated consistently. Similar to the DeepSeek models, consider adding test assertions in |
||
| inputPrice: 0.6, | ||
| outputPrice: 2.2, | ||
| cacheWritesPrice: 0, | ||
|
|
@@ -24,6 +25,7 @@ export const internationalZAiModels = { | |
| contextWindow: 131_072, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // GLM-4.5-Air supports thinking/reasoning | ||
| inputPrice: 0.2, | ||
| outputPrice: 1.1, | ||
| cacheWritesPrice: 0, | ||
|
|
@@ -41,6 +43,7 @@ export const mainlandZAiModels = { | |
| contextWindow: 131_072, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // GLM-4.5 supports thinking/reasoning | ||
| inputPrice: 0.29, | ||
| outputPrice: 1.14, | ||
| cacheWritesPrice: 0, | ||
|
|
@@ -73,6 +76,7 @@ export const mainlandZAiModels = { | |
| contextWindow: 131_072, | ||
| supportsImages: false, | ||
| supportsPromptCache: true, | ||
| supportsReasoningEffort: true, // GLM-4.5-Air supports thinking/reasoning | ||
| inputPrice: 0.1, | ||
| outputPrice: 0.6, | ||
| cacheWritesPrice: 0, | ||
|
|
||
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.
The implementation looks correct and follows the existing pattern. However, would it be helpful to add test coverage for the
supportsReasoningEffortflag? The existing tests insrc/api/providers/__tests__/deepseek.spec.tscould verify this capability is properly set.