Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -144,6 +144,7 @@ def get_completion(message,history):
|
|
144 |
response = requests.post('https://burn.hair/v1/chat/completions', headers=headers, json=data)
|
145 |
response_data = response.json()
|
146 |
print(response_data)
|
|
|
147 |
if 'error' in response_data:
|
148 |
response_content = response_data['error']['message']
|
149 |
else:
|
|
|
144 |
response = requests.post('https://burn.hair/v1/chat/completions', headers=headers, json=data)
|
145 |
response_data = response.json()
|
146 |
print(response_data)
|
147 |
+
print('-----------------------------------\n')
|
148 |
if 'error' in response_data:
|
149 |
response_content = response_data['error']['message']
|
150 |
else:
|