Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,7 +163,7 @@ def chat_with_model(prompt, document_section, model_choice='gpt-3.5-turbo'):
|
|
| 163 |
collected_chunks = []
|
| 164 |
collected_messages = []
|
| 165 |
key = os.getenv('OPENAI_API_KEY')
|
| 166 |
-
|
| 167 |
|
| 168 |
for chunk in client.chat.completions.create(
|
| 169 |
model='gpt-3.5-turbo',
|
|
|
|
| 163 |
collected_chunks = []
|
| 164 |
collected_messages = []
|
| 165 |
key = os.getenv('OPENAI_API_KEY')
|
| 166 |
+
client.api_key = key
|
| 167 |
|
| 168 |
for chunk in client.chat.completions.create(
|
| 169 |
model='gpt-3.5-turbo',
|