Skip to content

Commit

Permalink
Fixed: questions not defined error (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Nov 9, 2023
1 parent 29a873c commit 68fc6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptty/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def query_async_wrapper(config_path:str, question:str, tag:str, additional
click.echo(f"{RED}FAILED to initialize connection to OpenAI. Have you added an API token? See gptty docs <https://github.com/signebedi/gptty#configuration> or <https://platform.openai.com/account/api-keys> for more information.")
return

if len(questions) < 1 or not isinstance(questions, tuple):
if len(question) < 1 or not isinstance(question, tuple):
click.echo(f"{RED}FAILED to query ChatGPT. Did you forget to ask a question? Run `gptty chat --help` for more information.")
return

Expand Down

0 comments on commit 68fc6f9

Please sign in to comment.