Skip to content

Commit

Permalink
Fix bug when using AZURE OPENAI
Browse files Browse the repository at this point in the history
  • Loading branch information
tpai committed Feb 18, 2024
1 parent 500d019 commit 3866e61
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.py
Expand Up @@ -284,8 +284,5 @@ def main():
except Exception as e:
print(e)

if 'OPENAI_API_KEY' not in os.environ:
print('⚠️ OPENAI_API_KEY environment variable is not defined')
else:
if __name__ == '__main__':
main()
if __name__ == '__main__':
main()

0 comments on commit 3866e61

Please sign in to comment.