From 5ffe85a447cc060e4f74025092e6ebec14460978 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 6 Feb 2025 22:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20openai.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/chatgpt/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.v2/chatgpt/openai.py b/plugins.v2/chatgpt/openai.py index 937ecea..9dbd1b3 100644 --- a/plugins.v2/chatgpt/openai.py +++ b/plugins.v2/chatgpt/openai.py @@ -123,7 +123,7 @@ class OpenAi: try: _filename_prompt = "I will give you a movie/tvshow file name.You need to return a Json." \ "\nPay attention to the correct identification of the film name." \ - "\n{\"title\":string,\"version\":string,\"part\":string,\"year\":string,\"resolution\":string,\"season\":number|null,\"episode\":number|null}" + "\n{\"name\":string,\"version\":string,\"part\":string,\"year\":string,\"resolution\":string,\"season\":number|null,\"episode\":number|null}" completion = self.__get_model(prompt=_filename_prompt, message=filename) result = completion.choices[0].message.content return json.loads(result)