feat: 将默认 LLM 配置从 OpenAI 切换为 DeepSeek (deepseek-v4-pro)
This commit is contained in:
+2
-2
@@ -150,9 +150,9 @@ func (h *AuthHandler) HandleLogout(c *gin.Context) {
|
||||
|
||||
// defaultUserSettings mirrors models.DefaultSettings for seeding new users.
|
||||
var defaultUserSettings = map[string]string{
|
||||
"llm.endpoint": "https://api.openai.com/v1",
|
||||
"llm.endpoint": "https://api.deepseek.com",
|
||||
"llm.api_key": "",
|
||||
"llm.model": "gpt-4o",
|
||||
"llm.model": "deepseek-v4-pro",
|
||||
"review.top_n": "20",
|
||||
"review.concurrency": "5",
|
||||
"cache.max_age_days": "7",
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package models
|
||||
|
||||
var DefaultSettings = map[string]string{
|
||||
"llm.endpoint": "https://api.openai.com/v1",
|
||||
"llm.endpoint": "https://api.deepseek.com",
|
||||
"llm.api_key": "",
|
||||
"llm.model": "gpt-4o",
|
||||
"llm.model": "deepseek-v4-pro",
|
||||
"review.top_n": "20",
|
||||
"review.concurrency": "5",
|
||||
"cache.max_age_days": "7",
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ func GetLLMConfig(db *sql.DB, userID int64) (LLMConfig, error) {
|
||||
}
|
||||
|
||||
if config.Model == "" {
|
||||
config.Model = "gpt-4o"
|
||||
config.Model = "deepseek-v4-pro"
|
||||
}
|
||||
|
||||
return config, nil
|
||||
|
||||
Reference in New Issue
Block a user