summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorLê Anh Tuấn <justin.le.1105@gmail.com>2023-06-29 15:55:45 +0200
committerGitHub <noreply@github.com>2023-06-29 15:55:45 +0200
commite079d95b108d489033ad7f3a0f450b7d126ae695 (patch)
tree74a675b87bc054b0cbdf5268c30e64fc80512d11 /g4f/Provider
parentMerge pull request #688 from BoBeR182/patch-1 (diff)
downloadgpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar.gz
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar.bz2
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar.lz
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar.xz
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.tar.zst
gpt4free-e079d95b108d489033ad7f3a0f450b7d126ae695.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Providers/Lockchat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Providers/Lockchat.py b/g4f/Provider/Providers/Lockchat.py
index d97bc67b..1bce7403 100644
--- a/g4f/Provider/Providers/Lockchat.py
+++ b/g4f/Provider/Providers/Lockchat.py
@@ -2,7 +2,7 @@ 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
@@ -18,7 +18,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: