feat(llm): update model and reasoning parameters
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 31s

This commit is contained in:
game-loader
2026-01-11 18:11:04 +08:00
parent d515d4456b
commit d98879a2db
4 changed files with 11 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ MEM0_CONFIG = {
"provider": "openai",
"config": {
"api_key": OPENAI_API_KEY_FROM_CONFIG,
"model": "doubao-seed-1-6-250615",
"model": "doubao-seed-1-8-251228",
"openai_base_url": OPENAI_API_BASE_URL_CONFIG
}
},
@@ -83,4 +83,4 @@ The main API endpoints remain the same:
- `POST /chat` - Send a message and get a response
- `GET /health` - Health check
Additional memory management endpoints can be added to the main API if needed.
Additional memory management endpoints can be added to the main API if needed.

View File

@@ -417,7 +417,9 @@ class LocalMemoryIntegration:
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_input}
],
# reasoning_effort="minimal", # 你原始代码里的,如果豆包不支持就删掉
thinking={"type": "disabled"},
reasoning={"effort": "minimal"},
max_tokens=200,
# 推荐开启 JSON 模式,让豆包强制输出 JSON
response_format={"type": "json_object"}
)