feat: rename config modelName to model

This commit is contained in:
Simon
2025-10-21 15:13:16 +08:00
parent dc7e09b4ad
commit b6bf6fe06a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import {
export interface LLMConfig {
baseURL?: string
apiKey?: string
modelName?: string
model?: string
temperature?: number
maxTokens?: number
maxRetries?: number
@@ -30,7 +30,7 @@ export function parseLLMConfig(config: LLMConfig): Required<LLMConfig> {
return {
baseURL: config.baseURL ?? DEFAULT_BASE_URL,
apiKey: config.apiKey ?? DEFAULT_API_KEY,
modelName: config.modelName ?? DEFAULT_MODEL_NAME,
model: config.model ?? DEFAULT_MODEL_NAME,
temperature: config.temperature ?? DEFAULT_TEMPERATURE,
maxTokens: config.maxTokens ?? DEFAULT_MAX_TOKENS,
maxRetries: config.maxRetries ?? LLM_MAX_RETRIES,