feat(llm-deepseek): support low reasoning effort

This commit is contained in:
Yichen Jiang
2026-08-14 11:47:59 +08:00
parent f322d5cb0d
commit 226600147e
21 changed files with 54 additions and 46 deletions

View File

@@ -48,7 +48,7 @@ const PiAiConfig = Schema.object({
const DeepSeekConfig = Schema.object({
apiKeyEnv: Schema.string().role('credential-ref'),
baseURL: Schema.string().pattern(/^https:\/\//),
reasoningEffort: Schema.union(['off', 'high', 'max']),
reasoningEffort: Schema.union(['off', 'low', 'high', 'max']),
defaultContextWindow: Schema.number().step(1).min(1),
models: Schema.array(Schema.object({
id: Schema.string().required(),

View File

@@ -29,7 +29,7 @@ function fail<T>(message: string): RpcResponse<T> {
const DeepSeekConfig = Schema.object({
apiKeyEnv: Schema.string().role('credential-ref'),
baseURL: Schema.string().pattern(/^https:\/\//),
reasoningEffort: Schema.union(['off', 'high', 'max']),
reasoningEffort: Schema.union(['off', 'low', 'high', 'max']),
defaultContextWindow: Schema.number().step(1).min(1),
models: Schema.array(Schema.object({
id: Schema.string().required(),