Skip to content

Commit 146f7b8

Browse files
committed
2.2 支持 gpt 4.1
1 parent a70858b commit 146f7b8

2 files changed

Lines changed: 2 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.1', # Required. eg. 1.2.3
40+
version='2.2', # 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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_41 = "gpt-4.1" # 128K(静态模型,适合翻译,比 4o 性价比更高)
2425
CHATGPT_5_NANO = "gpt-5-nano" # 1K
2526
CHATGPT_5_MINI = "gpt-5-mini" # 4K
2627
CHATGPT_5 = "gpt-5" # 128K(静态模型,适合翻译,效果和性价比都比 4o 更好)

0 commit comments

Comments
 (0)