mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
update:暂时撤回对gemini模型的更替
This commit is contained in:
parent
2c89b284b2
commit
59b51e021b
3 changed files with 2 additions and 12 deletions
|
|
@ -20,13 +20,3 @@ WHERE `id` = 'LLM_DoubaoLLM'
|
||||||
`remark` LIKE '%Doubao-1.5-pro%'
|
`remark` LIKE '%Doubao-1.5-pro%'
|
||||||
OR `remark` LIKE '%doubao-1-5-pro-32k-250115%'
|
OR `remark` LIKE '%doubao-1-5-pro-32k-250115%'
|
||||||
);
|
);
|
||||||
|
|
||||||
UPDATE `ai_model_config`
|
|
||||||
SET `config_json` = JSON_SET(`config_json`, '$.model_name', 'gemini-3.6-flash')
|
|
||||||
WHERE `id` = 'LLM_GeminiLLM'
|
|
||||||
AND JSON_UNQUOTE(JSON_EXTRACT(`config_json`, '$.model_name')) = 'gemini-2.0-flash';
|
|
||||||
|
|
||||||
UPDATE `ai_model_config`
|
|
||||||
SET `remark` = REPLACE(`remark`, 'gemini-2.0-flash', 'gemini-3.6-flash')
|
|
||||||
WHERE `id` = 'LLM_GeminiLLM'
|
|
||||||
AND `remark` LIKE '%gemini-2.0-flash%';
|
|
||||||
|
|
|
||||||
|
|
@ -683,7 +683,7 @@ LLM:
|
||||||
# token申请地址: https://aistudio.google.com/apikey
|
# token申请地址: https://aistudio.google.com/apikey
|
||||||
# 若部署地无法访问接口,需要开启科学上网
|
# 若部署地无法访问接口,需要开启科学上网
|
||||||
api_key: 你的gemini web key
|
api_key: 你的gemini web key
|
||||||
model_name: "gemini-3.6-flash"
|
model_name: "gemini-2.0-flash"
|
||||||
http_proxy: "" #"http://127.0.0.1:10808"
|
http_proxy: "" #"http://127.0.0.1:10808"
|
||||||
https_proxy: "" #http://127.0.0.1:10808"
|
https_proxy: "" #http://127.0.0.1:10808"
|
||||||
CozeLLM:
|
CozeLLM:
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ def setup_proxy_env(http_proxy: str | None, https_proxy: str | None):
|
||||||
|
|
||||||
class LLMProvider(LLMProviderBase):
|
class LLMProvider(LLMProviderBase):
|
||||||
def __init__(self, cfg: Dict[str, Any]):
|
def __init__(self, cfg: Dict[str, Any]):
|
||||||
self.model_name = cfg.get("model_name", "gemini-3.6-flash")
|
self.model_name = cfg.get("model_name", "gemini-2.0-flash")
|
||||||
self.api_key = cfg["api_key"]
|
self.api_key = cfg["api_key"]
|
||||||
http_proxy = cfg.get("http_proxy")
|
http_proxy = cfg.get("http_proxy")
|
||||||
https_proxy = cfg.get("https_proxy")
|
https_proxy = cfg.get("https_proxy")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue