Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import json
|
|
| 5 |
|
| 6 |
def get_answer(text, api_key):
|
| 7 |
# Прямая связь с OpenRouter
|
| 8 |
-
url = "https://openrouter.ai"
|
| 9 |
|
| 10 |
headers = {
|
| 11 |
"Authorization": f"Bearer {api_key}",
|
|
|
|
| 5 |
|
| 6 |
def get_answer(text, api_key):
|
| 7 |
# Прямая связь с OpenRouter
|
| 8 |
+
url = "https://openrouter.ai/api/v1/chat/completions"
|
| 9 |
|
| 10 |
headers = {
|
| 11 |
"Authorization": f"Bearer {api_key}",
|