From f9a99eed66399ed6c18568e062721121d58e49ab Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Fri, 12 Jan 2024 14:48:49 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E5=B7=B2=E8=A2=ABOp?= =?UTF-8?q?enAI=E5=BC=83=E7=94=A8=E7=9A=84=E6=A8=A1=E5=9E=8B=20(#658)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-template.py | 7 ------- pkg/audit/gatherer.py | 2 +- pkg/openai/modelmgr.py | 7 ------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/config-template.py b/config-template.py index dcb06aef..3004e567 100644 --- a/config-template.py +++ b/config-template.py @@ -230,13 +230,6 @@ auto_reset = True # "gpt-3.5-turbo-0301", # legacy # # Completions接口: -# "text-davinci-003", # legacy -# "text-davinci-002", # legacy -# "code-davinci-002", # legacy -# "code-cushman-001", # legacy -# "text-curie-001", # legacy -# "text-babbage-001", # legacy -# "text-ada-001", # legacy # "gpt-3.5-turbo-instruct", # # 具体请查看OpenAI的文档: https://beta.openai.com/docs/api-reference/completions/create diff --git a/pkg/audit/gatherer.py b/pkg/audit/gatherer.py index 2dc2c560..b3233f10 100644 --- a/pkg/audit/gatherer.py +++ b/pkg/audit/gatherer.py @@ -21,7 +21,7 @@ class DataGatherer: 以key值md5为key,{ "text": { - "text-davinci-003": 文字量:int, + "gpt-3.5-turbo": 文字量:int, }, "image": { "256x256": 图片数量:int, diff --git a/pkg/openai/modelmgr.py b/pkg/openai/modelmgr.py index 699e79dc..0abd2d16 100644 --- a/pkg/openai/modelmgr.py +++ b/pkg/openai/modelmgr.py @@ -13,13 +13,6 @@ from ..openai.api import completion as api_completion from ..openai.api import chat_completion as api_chat_completion COMPLETION_MODELS = { - "text-davinci-003", # legacy - "text-davinci-002", # legacy - "code-davinci-002", # legacy - "code-cushman-001", # legacy - "text-curie-001", # legacy - "text-babbage-001", # legacy - "text-ada-001", # legacy "gpt-3.5-turbo-instruct", }