feat: handle Claude API; update temperature default

This commit is contained in:
Simon
2025-10-17 19:04:24 +08:00
parent 6f332aa24a
commit 1e3e089656
2 changed files with 21 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ export function parseLLMConfig(config: LLMConfig): Required<LLMConfig> {
baseURL: config.baseURL ?? DEFAULT_BASE_URL,
apiKey: config.apiKey ?? DEFAULT_API_KEY,
modelName: config.modelName ?? DEFAULT_MODEL_NAME,
temperature: config.temperature ?? 0.0,
temperature: config.temperature ?? 0.5, // higher randomness helps auto-recovery
maxTokens: config.maxTokens ?? 4096,
maxRetries: config.maxRetries ?? LLM_MAX_RETRIES,
}