Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -419,7 +419,11 @@ async def get_completion(payload: Payload, request: Request, authenticated: bool
|
|
| 419 |
custom_headers = {}
|
| 420 |
else:
|
| 421 |
endpoint = env_vars['secret_api_endpoint']
|
| 422 |
-
custom_headers = {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 423 |
|
| 424 |
print(f"Using endpoint: {endpoint} for model: {model_to_use}")
|
| 425 |
|
|
|
|
| 419 |
custom_headers = {}
|
| 420 |
else:
|
| 421 |
endpoint = env_vars['secret_api_endpoint']
|
| 422 |
+
custom_headers = {
|
| 423 |
+
"Origin": "https://gpt-chatbotru-4-o1.ru",
|
| 424 |
+
"Priority": "u=1, i",
|
| 425 |
+
"Referer": "https://gpt-chatbotru-4-o1.ru/"
|
| 426 |
+
}
|
| 427 |
|
| 428 |
print(f"Using endpoint: {endpoint} for model: {model_to_use}")
|
| 429 |
|