-
Notifications
You must be signed in to change notification settings - Fork 194
feat(friendli): add reasoning params support #886
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -20,8 +20,10 @@ export const friendliModels = { | |
| outputPrice: 4.4, | ||
| cacheWritesPrice: 0, | ||
| cacheReadsPrice: 0.26, | ||
| supportsReasoningEffort: ["minimal", "low", "medium", "high", "xhigh", "max"], | ||
| reasoningEffort: "high", | ||
| description: | ||
| "GLM-5.2 is Zhipu's flagship model with a 1M context window and 128k max output, served via Friendli Model APIs. It delivers top-tier long-context reasoning, coding, and agentic performance for extended engineering sessions.", | ||
| "GLM-5.2 is Zhipu's flagship model with a 1M context window and 128k max output, served via Friendli Model APIs. It delivers top-tier long-context reasoning, coding, and agentic performance for extended engineering sessions. (controllable reasoning model)", | ||
| }, | ||
| "zai-org/GLM-5.1": { | ||
| maxTokens: 131_072, | ||
|
|
@@ -33,8 +35,10 @@ export const friendliModels = { | |
| outputPrice: 4.4, | ||
| cacheWritesPrice: 0, | ||
| cacheReadsPrice: 0.26, | ||
| supportsReasoningEffort: ["minimal", "low", "medium", "high", "xhigh", "max"], | ||
| reasoningEffort: "high", | ||
| description: | ||
| "GLM-5.1 is Zhipu's most capable model with a 200k context window and 128k max output, served via Friendli Model APIs. It delivers top-tier reasoning, coding, and agentic performance.", | ||
| "GLM-5.1 is Zhipu's most capable model with a 200k context window and 128k max output, served via Friendli Model APIs. It delivers top-tier reasoning, coding, and agentic performance. (controllable reasoning model)", | ||
| }, | ||
| "deepseek-ai/DeepSeek-V3.2": { | ||
| maxTokens: 16384, | ||
|
|
@@ -57,7 +61,8 @@ export const friendliModels = { | |
| outputPrice: 1.2, | ||
| cacheWritesPrice: 0, | ||
| cacheReadsPrice: 0.06, | ||
| supportsReasoningBinary: true, | ||
|
Contributor
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. On I think these changes should be in a separate PR in order not to bloat this one |
||
| description: | ||
| "MiniMax M2.5 is a high-performance language model with a 204.8K context window, optimized for long-context understanding and generation tasks, served via Friendli Model APIs.", | ||
| "MiniMax M2.5 is a high-performance language model with a 204.8K context window, optimized for long-context understanding and generation tasks, served via Friendli Model APIs. (always-reasoning model)", | ||
| }, | ||
| } as const satisfies Record<string, ModelInfo> | ||
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.
Does GLM offer a way to disable reasoning effort completely using 'disable' as a key?