From 51a52c9ba8079233311f5759dd38575a236e4d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Thu, 18 Apr 2024 22:50:42 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=99=E3=81=B9=E3=81=A6=E3=81=AE=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=82=92=E6=8F=A1=E3=82=8A=E6=BD=B0=E3=81=99?= =?UTF-8?q?=E3=82=84=E3=81=85=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- talk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talk.py b/talk.py index 19ff3c6..ea9e25d 100644 --- a/talk.py +++ b/talk.py @@ -212,7 +212,7 @@ class Talk: return openai.chat.completions.create ( model = 'gpt-3.5-turbo', messages = messages).choices[0].message - except openai.AuthenticationError: + except: return None