Skip to content

Commit e7e2919

Browse files
committed
支持 GPT5 模型
1 parent b08aa86 commit e7e2919

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# For a discussion on single-sourcing the version across setup.py and the
3838
# project code, see
3939
# https://packaging.python.org/en/latest/single_source_version.html
40-
version='2.0', # Required. eg. 1.2.3
40+
version='2.1', # Required. eg. 1.2.3
4141

4242
# This is a one-line description or tagline of what your project does. This
4343
# corresponds to the "Summary" metadata field:

src/transgpt/trans_chatgpt.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
CHATGPT_4o_20240806 = "gpt-4o-2024-08-06" # 128K(静态模型,100% 格式化输出)
2222
CHATGPT_4o_LATEST = "chatgpt-4o-latest" # 128K(动态模型,价格高)
2323
CHATGPT_4o_MINI = "gpt-4o-mini" # 128K(翻译较弱)
24+
CHATGPT_5_NANO = "gpt-5-nano"
25+
CHATGPT_5_MINI = "gpt-5-mini"
26+
CHATGPT_5 = "gpt-5"
27+
CHATGPT_5_LATEST = "gpt-5-chat-latest"
2428

2529
HTTP_PROXY = "HTTP_PROXY"
2630
HTTPS_PROXY = "HTTPS_PROXY"

0 commit comments

Comments
 (0)