Skip to content

Commit

Permalink
Properly use argument timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nicovank committed Feb 20, 2024
1 parent 659ceeb commit afce64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatdbg/chatdbg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def explain(
return

try:
client = openai.OpenAI(timeout=30)
client = openai.OpenAI(timeout=args.timeout)
except openai.OpenAIError:
print("You need an OpenAI key to use this tool.")
print("You can get a key here: https://platform.openai.com/api-keys")
Expand Down

0 comments on commit afce64b

Please sign in to comment.