feat: 支持GPT-4 API

This commit is contained in:
Rock Chin
2023-03-18 04:38:48 +00:00
parent c842485d33
commit b7642fe876
3 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# QChatGPT🤖
> 2023/3/16 正在等待GPT-4 API内测资格,若您已获得资格并愿意提供测试,请进群联系群主
> 2023/3/18 现已支持GPT-4 API(需要内测资格),请查看`config-template.py`中的`completion_api_params`的说明
> 2023/3/15 逆向库已支持New Bing使用方法查看[插件文档](https://github.com/RockChinQ/revLibs)
> 2023/3/15 逆向库已支持GPT-4模型使用方法查看[插件](https://github.com/RockChinQ/revLibs)
> 2023/3/3 现已在主线支持官方ChatGPT接口使用方法查看[#195](https://github.com/RockChinQ/QChatGPT/issues/195)

View File

@@ -145,6 +145,10 @@ prompt_submit_length = 1024
# 请在下方填写模型,程序自动选择接口
# 现已支持的模型有:
#
# 'gpt-4'
# 'gpt-4-0314'
# 'gpt-4-32k'
# 'gpt-4-32k-0314'
# 'gpt-3.5-turbo'
# 'gpt-3.5-turbo-0301'
# 'text-davinci-003'
@@ -156,6 +160,7 @@ prompt_submit_length = 1024
# 'text-ada-001'
#
# 具体请查看OpenAI的文档: https://beta.openai.com/docs/api-reference/completions/create
# 请将内容修改到config.py中请勿修改此文件
completion_api_params = {
"model": "gpt-3.5-turbo",
"temperature": 0.9, # 数值越低得到的回答越理性,取值范围[0, 1]

View File

@@ -21,6 +21,10 @@ COMPLETION_MODELS = {
CHAT_COMPLETION_MODELS = {
'gpt-3.5-turbo',
'gpt-3.5-turbo-0301',
'gpt-4',
'gpt-4-0314',
'gpt-4-32k',
'gpt-4-32k-0314'
}
EDIT_MODELS = {