Commit Graph

2 Commits

Author SHA1 Message Date
selfrelease fe2c6fb2e4 fix: 修正 OpenAI/Anthropic Provider 初始化参数顺序
修复 manager.go 中两处调用 NewOpenAIProvider 和 NewAnthropicProvider
时参数顺序错误的问题。原代码将 baseURL 和 apiKey 参数传反,导致
API key 被当作 URL 使用,引发 "unsupported protocol scheme" 错误。

Changed:
- LoadProvidersFromDB: 调整参数顺序为 (apiKey, baseURL, "")
- GetActiveProvider: 调整参数顺序为 (apiKey, baseURL, "")
2026-06-22 18:02:23 +08:00
freedakgmail 0f490f72a9 Initial commit: GovAI 政务AI平台 2026-06-15 23:48:37 +08:00