mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 00:23:53 +08:00
update:优化gemini配置提示
This commit is contained in:
@@ -97,6 +97,10 @@ LLM:
|
|||||||
api_key: 你的DifyLLM api key
|
api_key: 你的DifyLLM api key
|
||||||
GeminiLLM:
|
GeminiLLM:
|
||||||
type: gemini
|
type: gemini
|
||||||
|
# 谷歌Gemini API,需要先在Google Cloud控制台创建API密钥并获取api_key
|
||||||
|
# 若在中国境内使用,请遵守《生成式人工智能服务管理暂行办法》
|
||||||
|
# token申请地址: https://aistudio.google.com/apikey
|
||||||
|
# 若部署地无法访问接口,需要开启科学上网
|
||||||
api_key: 你的gemini api key
|
api_key: 你的gemini api key
|
||||||
model_name: "gemini-1.5-pro" # gemini-1.5-pro 是免费的
|
model_name: "gemini-1.5-pro" # gemini-1.5-pro 是免费的
|
||||||
TTS:
|
TTS:
|
||||||
@@ -120,6 +124,8 @@ TTS:
|
|||||||
cluster: volcano_tts
|
cluster: volcano_tts
|
||||||
CosyVoiceSiliconflow:
|
CosyVoiceSiliconflow:
|
||||||
type: siliconflow
|
type: siliconflow
|
||||||
|
# 硅基流动TTS
|
||||||
|
# token申请地址 https://cloud.siliconflow.cn/account/ak
|
||||||
model: FunAudioLLM/CosyVoice2-0.5B
|
model: FunAudioLLM/CosyVoice2-0.5B
|
||||||
voice: FunAudioLLM/CosyVoice2-0.5B:alex
|
voice: FunAudioLLM/CosyVoice2-0.5B:alex
|
||||||
output_file: tmp/
|
output_file: tmp/
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
|
||||||
import logging
|
import logging
|
||||||
import openai
|
|
||||||
import requests
|
|
||||||
import importlib
|
import importlib
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from core.utils.util import is_segment
|
from core.utils.util import is_segment
|
||||||
from core.utils.util import get_string_no_punctuation_or_emoji
|
from core.utils.util import get_string_no_punctuation_or_emoji
|
||||||
from core.utils.util import read_config, get_project_dir
|
from core.utils.util import read_config, get_project_dir
|
||||||
from abc import ABC, abstractmethod
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ openai==1.61.0
|
|||||||
google-generativeai==0.8.4
|
google-generativeai==0.8.4
|
||||||
edge_tts==7.0.0
|
edge_tts==7.0.0
|
||||||
httpx==0.27.2
|
httpx==0.27.2
|
||||||
|
google-generativeai==0.8.4
|
||||||
Reference in New Issue
Block a user