Spaces:
Running
Running
Fix: subDomain of LockChat
Browse files
g4f/Provider/Providers/Lockchat.py
CHANGED
@@ -2,7 +2,7 @@ import requests
|
|
2 |
import os
|
3 |
import json
|
4 |
from ...typing import sha256, Dict, get_type_hints
|
5 |
-
url = 'http://
|
6 |
model = ['gpt-4', 'gpt-3.5-turbo']
|
7 |
supports_stream = True
|
8 |
needs_auth = False
|
@@ -18,7 +18,7 @@ def _create_completion(model: str, messages: list, stream: bool, temperature: fl
|
|
18 |
headers = {
|
19 |
"user-agent": "ChatX/39 CFNetwork/1408.0.4 Darwin/22.5.0",
|
20 |
}
|
21 |
-
response = requests.post("http://
|
22 |
json=payload, headers=headers, stream=True)
|
23 |
for token in response.iter_lines():
|
24 |
if b'The model: `gpt-4` does not exist' in token:
|
|
|
2 |
import os
|
3 |
import json
|
4 |
from ...typing import sha256, Dict, get_type_hints
|
5 |
+
url = 'http://supertest.lockchat.app'
|
6 |
model = ['gpt-4', 'gpt-3.5-turbo']
|
7 |
supports_stream = True
|
8 |
needs_auth = False
|
|
|
18 |
headers = {
|
19 |
"user-agent": "ChatX/39 CFNetwork/1408.0.4 Darwin/22.5.0",
|
20 |
}
|
21 |
+
response = requests.post("http://supertest.lockchat.app/v1/chat/completions",
|
22 |
json=payload, headers=headers, stream=True)
|
23 |
for token in response.iter_lines():
|
24 |
if b'The model: `gpt-4` does not exist' in token:
|