适配多个 LLM 源 (anthropic/gemini/mistral/groq/github) + SQLite 配置收敛 + 测试插件

This commit is contained in:
root
2026-07-03 14:03:51 +08:00
parent b1b90ae09f
commit 4442c9cea4
16 changed files with 2059 additions and 161 deletions

View File

@ -93,13 +93,24 @@ type OperationLog struct {
Success bool `json:"success"`
}
type LLMSource struct {
Name string `json:"name"`
BaseURL string `json:"base_url"`
Model string `json:"model"`
APIKey string `json:"api_key,omitempty"`
Adapter string `json:"adapter"`
AdapterPath string `json:"adapter_path,omitempty"`
}
type LLMConfig struct {
Provider string `json:"provider"`
Model string `json:"model"`
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
Temperature float64 `json:"temperature"`
MaxTokens int `json:"max_tokens"`
Provider string `json:"provider"`
Model string `json:"model"`
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
Adapter string `json:"adapter"`
Temperature float64 `json:"temperature"`
MaxTokens int `json:"max_tokens"`
Sources []LLMSource `json:"sources,omitempty"`
}
type Config struct {