feat: option to disable named tool choice

This commit is contained in:
Simon
2026-03-20 17:40:16 +08:00
parent 50ce56a4f6
commit 66a85c0dd3
6 changed files with 40 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ export function parseLLMConfig(config: LLMConfig): Required<LLMConfig> {
apiKey: config.apiKey || '',
temperature: config.temperature ?? DEFAULT_TEMPERATURE,
maxRetries: config.maxRetries ?? LLM_MAX_RETRIES,
disableNamedToolChoice: config.disableNamedToolChoice ?? false,
customFetch: (config.customFetch ?? fetch).bind(globalThis), // fetch will be illegal unless bound
}
}