mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-24 01:36:37 +03:00
Merge pull request #705 from tuanle96/fix-lockchat-provider
Fix: change subDomain of LockChat
This commit is contained in:
commit
8cb80866b0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user