Skip to content

Commit f00d936

Browse files
committed
Fix global var
1 parent 4afa3fa commit f00d936

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gpt_cmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def red(text):
7777
return ansi.color_text(text, ansi._red)
7878

7979
def call_gpt(messages):
80+
global OPENAI_CLIENT
8081
if OPENAI_CLIENT is None:
8182
OPENAI_CLIENT = OpenAI(api_key=read_file(OPTIONS['token_file_path']))
8283

0 commit comments

Comments
 (0)