monra commited on
Commit
878bb05
1 Parent(s): d2211b9

Fix: subDomain of LockChat

Browse files
Files changed (1) hide show
  1. g4f/Provider/Providers/Lockchat.py +2 -2
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://super.lockchat.app'
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://super.lockchat.app/v1/chat/completions?auth=FnMNPlwZEnGFqvEc9470Vw==",
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: