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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
/tmp/
/data/
/.venv/
/.vscode/
/.vscode/
openai1.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
> - [x] 流式、非流式传输
> - [x] 免登录 GPT-3.5 对话
> - [x] GPT-3.5 模型对话(传入模型名不包含 gpt-4,则默认使用 gpt-3.5,也就是 text-davinci-002-render-sha)
> - [x] GPT-4 系列模型对话(传入模型名包含: gpt-4,gpt-4o,gpt-4o-mini,gpt-4-moblie 即可使用对应模型,需传入 AccessToken)
> - [x] GPT-4 系列模型对话(传入模型名包含: gpt-4,gpt-4o,gpt-4o-mini,gpt-4-moblie, gpt-5 即可使用对应模型,需传入 AccessToken)
> - [x] O1 系列模型对话(传入模型名包含 o1-preview,o1-mini 即可使用对应模型,需传入 AccessToken)
> - [x] GPT-4 模型画图、代码、联网
> - [x] 支持 GPTs(传入模型名:gpt-4-gizmo-g-*)
Expand Down
1 change: 1 addition & 0 deletions api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"gpt-3.5-turbo": "gpt-3.5-turbo-0125",
"gpt-3.5-turbo-16k": "gpt-3.5-turbo-16k-0613",
"gpt-4": "gpt-4-0613",
"gpt-5": "gpt-5",
"gpt-4-32k": "gpt-4-32k-0613",
"gpt-4-turbo-preview": "gpt-4-0125-preview",
"gpt-4-vision-preview": "gpt-4-1106-vision-preview",
Expand Down
2 changes: 2 additions & 0 deletions chatgpt/ChatService.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ async def set_model(self):
self.req_model = "o1-pro"
elif "o1-mini" in self.origin_model:
self.req_model = "o1-mini"
elif "gpt-5" in self.origin_model:
self.req_model = "gpt-5"
elif "o1" in self.origin_model:
self.req_model = "o1"
elif "gpt-4.5o" in self.origin_model:
Expand Down