Spaces:
Sleeping
Sleeping
Update text2generation.py
Browse files- text2generation.py +1 -1
text2generation.py
CHANGED
|
@@ -9,7 +9,7 @@ def generate_long_answer(question):
|
|
| 9 |
response = client.post(
|
| 10 |
url="https://openrouter.ai/api/v1/chat/completions",
|
| 11 |
headers={
|
| 12 |
-
"Authorization": f"Bearer {os.getenv('
|
| 13 |
"Content-Type": "application/json",
|
| 14 |
"HTTP-Referer": "https://sreepathi-ravikumar-sample.hf.space",
|
| 15 |
"X-Title": "Educational AI Assistant"
|
|
|
|
| 9 |
response = client.post(
|
| 10 |
url="https://openrouter.ai/api/v1/chat/completions",
|
| 11 |
headers={
|
| 12 |
+
"Authorization": f"Bearer {os.getenv('OPENROUTER_API_NEW')}",
|
| 13 |
"Content-Type": "application/json",
|
| 14 |
"HTTP-Referer": "https://sreepathi-ravikumar-sample.hf.space",
|
| 15 |
"X-Title": "Educational AI Assistant"
|