summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Providers/Lockchat.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/Provider/Providers/Lockchat.py')
-rw-r--r--g4f/Provider/Providers/Lockchat.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/g4f/Provider/Providers/Lockchat.py b/g4f/Provider/Providers/Lockchat.py
index d97bc67b..dd1edb84 100644
--- a/g4f/Provider/Providers/Lockchat.py
+++ b/g4f/Provider/Providers/Lockchat.py
@@ -2,15 +2,16 @@ import requests
import os
import json
from ...typing import sha256, Dict, get_type_hints
-url = 'http://super.lockchat.app'
+url = 'http://supertest.lockchat.app'
model = ['gpt-4', 'gpt-3.5-turbo']
supports_stream = True
needs_auth = False
+working = False
def _create_completion(model: str, messages: list, stream: bool, temperature: float = 0.7, **kwargs):
payload = {
- "temperature": 0.7,
+ "temperature": temperature,
"messages": messages,
"model": model,
"stream": True,
@@ -18,7 +19,7 @@ def _create_completion(model: str, messages: list, stream: bool, temperature: fl
headers = {
"user-agent": "ChatX/39 CFNetwork/1408.0.4 Darwin/22.5.0",
}
- response = requests.post("http://super.lockchat.app/v1/chat/completions?auth=FnMNPlwZEnGFqvEc9470Vw==",
+ response = requests.post("http://supertest.lockchat.app/v1/chat/completions",
json=payload, headers=headers, stream=True)
for token in response.iter_lines():
if b'The model: `gpt-4` does not exist' in token: