feat: add customFetch config

This commit is contained in:
Simon
2025-12-24 16:42:31 +08:00
parent 17befe4bab
commit 59fcfaa503
5 changed files with 23 additions and 10 deletions

View File

@@ -18,6 +18,13 @@ interface LLMConfig {
temperature?: number
maxTokens?: number
maxRetries?: number
/**
* Custom fetch function for LLM API requests.
* Use this to customize headers, credentials, proxy, etc.
* The response should follow OpenAI API format.
*/
customFetch?: typeof globalThis.fetch
}
interface AgentConfig {