From 1cc9781333112c47352a520199d33216a8886b35 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Wed, 13 Sep 2023 03:09:35 +0000 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=B7=BB=E5=8A=A0=20One=20API?= =?UTF-8?q?=20=E7=9A=84=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config-template.py b/config-template.py index a8b25d73..2f1fdef8 100644 --- a/config-template.py +++ b/config-template.py @@ -228,12 +228,12 @@ auto_reset = True # # 具体请查看OpenAI的文档: https://beta.openai.com/docs/api-reference/completions/create # 请将内容修改到config.py中,请勿修改config-template.py +# +# 支持通过 One API 接入多种模型,请在上方的openai_config中设置One API的代理地址, +# 并在此填写您要使用的模型名称,详细请参考:https://github.com/songquanpeng/one-api completion_api_params = { "model": "gpt-3.5-turbo", "temperature": 0.9, # 数值越低得到的回答越理性,取值范围[0, 1] - "top_p": 1, # 生成的文本的文本与要求的符合度, 取值范围[0, 1] - "frequency_penalty": 0.2, - "presence_penalty": 1.0, } # OpenAI的Image API的参数