feat: update DeepSeek models to V4 Flash and V4 Pro (#103)
* feat: update DeepSeek models to V4 Flash and V4 Pro - Replace deprecated deepseek-chat / deepseek-reasoner with deepseek-v4-flash / deepseek-v4-pro - Update base URL from api.deepseek.com/v1 to api.deepseek.com - Update context window (1M) and max output (384K) per official API docs - Old models deprecated 2026-07-24 * fix: resolveGeneralLLMConfig missing baseUrl + Admiral timeout 180s resolveGeneralLLMConfig constructed a new LLMConfig but omitted baseUrl, causing the adapter to fall back to api.openai.com/v1 regardless of provider — DeepSeek keys hit OpenAI (401). Also raised Admiral preview timeout to 180s for thinking-mode models. * fix: createTempestCommandInstance missing baseUrl for operator exec Operator LLM calls also lacked baseUrl, same 401-for-DeepSeek bug as resolveGeneralLLMConfig. Reads provider-specific baseUrl from config. * fix(deepseek): migrate retired persisted defaults --------- Co-authored-by: Joseph Magly <1159087+jmagly@users.noreply.github.com>
This commit is contained in:
1 parent
9cce68e804
commit
440dedd9c1
6 files changed
+114
-36
No files matched your search
@@ -323,12 +323,15 @@ function createTempestCommandInstance(missionName: string, apiKey: string | unde
|
||||
tempestCommand.stop();
|
||||
}
|
||||
|
||||
const baseConfig = config.getLLMConfig(provider as any, model);
|
||||
|
||||
tempestCommand = new TempestCommand({
|
||||
name: missionName,
|
||||
llm: {
|
||||
provider: provider as any,
|
||||
model,
|
||||
apiKey,
|
||||
baseUrl: baseConfig.baseUrl,
|
||||
maxTokens: 4096,
|
||||
temperature: 0.7,
|
||||
},
|
||||
@@ -6741,6 +6744,7 @@ function resolveGeneralLLMConfig(provider: string | undefined, model: string | u
|
||||
provider: any;
|
||||
model: string;
|
||||
apiKey?: string;
|
||||
baseUrl?: string;
|
||||
maxTokens: number;
|
||||
temperature: number;
|
||||
timeout: number;
|
||||
@@ -6769,6 +6773,7 @@ function resolveGeneralLLMConfig(provider: string | undefined, model: string | u
|
||||
provider: selectedProvider as any,
|
||||
model: model || baseConfig.model,
|
||||
apiKey: effectiveKey,
|
||||
baseUrl: baseConfig.baseUrl,
|
||||
maxTokens: 8192,
|
||||
temperature: 0.4,
|
||||
timeout: readGeneralTimeoutEnv() ?? 300000, // General planning needs room (was a hardcoded 60s); override via env
|
||||
|
||||
Reference in new issue
Block a user