Skip to content

Commit

Permalink
add example for deployment_id and api_base (yihong0618#361)
Browse files Browse the repository at this point in the history
* add example for deployment_id and api_base

* add v1 when api base is Cloudflare proxy
  • Loading branch information
cxjava committed Oct 30, 2023
1 parent a05142d commit 4af487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ Bard-API [参考](https://github.com/dsdanielpark/Bard-API)
| gpt_options | OpenAI API 的参数字典 | `{}` |
| bing_cookie_path | NewBing使用的cookie路径,参考[这里]获取 | 也可通过环境变量 `COOKIE_FILE` 设置 |
| bing_cookies | NewBing使用的cookie字典,参考[这里]获取 | |
| deployment_id | Azure OpenAI 服务的 deployment ID | |
| deployment_id | Azure OpenAI 服务的 deployment ID | 参考这个[如何找到deployment_id](https://github.com/yihong0618/xiaogpt/issues/347#issuecomment-1784410784) |
| api_base | 如果需要替换默认的api,或者使用Azure OpenAI 服务 | 例如:`https://abc-def.openai.azure.com/` |
| localhost | 是否通过本地服务器加载EdgeTTS的音频输出 | `true` |

[这里]: https://github.com/acheong08/EdgeGPT#getting-authentication-required
Expand Down
1 change: 1 addition & 0 deletions xiao_config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"gpt_options": {},
"bing_cookie_path": "",
"bing_cookies": {},
"api_base": "https://abc-def.openai.azure.com/",
"deployment_id": "",
"localhost": true
}

0 comments on commit 4af487e

Please sign in to comment.