fix(openai.py): switch back to using requests instead of httpx

This commit is contained in:
Krrish Dholakia 2023-11-15 18:25:14 -08:00
parent 5990d046c4
commit fc8b54eb73
4 changed files with 3 additions and 37 deletions

View file

@ -38,11 +38,6 @@ def test_chat_openai():
for chunk in response:
# print(chunk)
continue
response = completion(model="gpt-3.5-turbo",
messages=[{
"role": "user",
"content": "Hi 👋 - i'm openai"
}])
# print(response)
except Exception as e: