feat: claude 3.7 model support

This commit is contained in:
Hk-Gosuto
2025-02-25 23:33:44 +08:00
parent b7e26ba18f
commit cdbbcb6ac3
11 changed files with 125 additions and 7 deletions

View File

@@ -73,6 +73,7 @@ export const DEFAULT_CONFIG = {
temperature: 0.5,
top_p: 1,
max_tokens: 4000,
budget_tokens: 1024,
presence_penalty: 0,
frequency_penalty: 0,
sendMemory: true,
@@ -170,6 +171,9 @@ export const ModalConfigValidator = {
max_tokens(x: number) {
return limitNumber(x, 0, 512000, 1024);
},
budget_tokens(x: number) {
return limitNumber(x, 0, 32000, 1024);
},
presence_penalty(x: number) {
return limitNumber(x, -2, 2, 0);
},

View File

@@ -19,6 +19,7 @@ export type Mask = {
builtin: boolean;
usePlugins?: boolean;
webSearch?: boolean;
claudeThinking?: boolean;
// 上游插件业务参数
plugin?: string[];
enableArtifacts?: boolean;