Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ xiaogpt --hardware LX06 --mute_xiaoai --use_moonshot_api --moonshot_api_key ${m
# 如果你想使用 01
xiaogpt --hardware LX06 --mute_xiaoai --use_yi_api --ti_api_key ${yi_api_key}
# 如果你想使用豆包
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_doubao --stream --volc_access_key xxxx --volc_secret_key xxx
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_doubao --stream --volc_api_key xxxx
# 如果你想使用 llama3
python3 xiaogpt.py --hardware LX06 --mute_xiaoai --use_llama --llama_api_key ${llama_api_key}
# 如果你想使用 LangChain+SerpApi 实现上网检索或其他本地服务(目前仅支持 stream 模式)
Expand Down Expand Up @@ -199,6 +199,7 @@ ChatGLM [文档](http://open.bigmodel.cn/doc/api#chatglm_130b)
| api_base | 如果需要替换默认的 api,或者使用 Azure OpenAI 服务 | 例如:`https://abc-def.openai.azure.com/` |
| volc_access_key | 火山引擎的 access key 请在[这里](https://console.volcengine.com/iam/keymanage/)获取 | | |
| volc_secret_key | 火山引擎的 secret key 请在[这里](https://console.volcengine.com/iam/keymanage/)获取 | |
| volc_api_key | 豆包(火山方舟)V3 API key,请在[这里](https://console.volcengine.com/ark/region:ark+cn-beijing/apiKey)获取 | |

## 注意

Expand Down
3 changes: 3 additions & 0 deletions xiaogpt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def main():
parser.add_argument(
"--volc_secret_key", dest="volc_secret_key", help="Volcengine secret key"
)
parser.add_argument(
"--volc_api_key", dest="volc_api_key", help="Volcengine Ark API key (for Doubao V3)"
)
# for fish tts
parser.add_argument("--fish_api_key", dest="fish_api_key", help="fish api key")
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion xiaogpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Config:
) # 自行部署的 Google Gemini 代理
volc_access_key: str = os.getenv("VOLC_ACCESS_KEY", "")
volc_secret_key: str = os.getenv("VOLC_SECRET_KEY", "")
volc_api_key: str = os.getenv("volc_api_key", "")
volc_api_key: str = os.getenv("VOLC_API_KEY", "")
ppio_api_key: str = os.getenv("PPIO_API_KEY", "")
jiekou_api_key: str = os.getenv("JIEKOU_API_KEY", "")
proxy: str | None = None
Expand Down