summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Providers/ChatgptAi.py
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2023-07-16 20:27:01 +0200
committerabc <98614666+xtekky@users.noreply.github.com>2023-07-16 20:27:01 +0200
commit76c7be3172f880932926a59e704e14a5f1f15067 (patch)
tree2b996520ea4c7b636644cd8433fc4dcef1ed4712 /g4f/Provider/Providers/ChatgptAi.py
parentMerge pull request #743 from bagusindrayana/refactor-provider (diff)
downloadgpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar.gz
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar.bz2
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar.lz
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar.xz
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.tar.zst
gpt4free-76c7be3172f880932926a59e704e14a5f1f15067.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Providers/ChatgptAi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/g4f/Provider/Providers/ChatgptAi.py b/g4f/Provider/Providers/ChatgptAi.py
index 00d4cf6f..929ec216 100644
--- a/g4f/Provider/Providers/ChatgptAi.py
+++ b/g4f/Provider/Providers/ChatgptAi.py
@@ -13,8 +13,7 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
chat += '%s: %s\n' % (message['role'], message['content'])
chat += 'assistant: '
- response = requests.get('https://chatgpt.ai/gpt-4/')
-
+ response = requests.get('https://chatgpt.ai/')
nonce, post_id, _, bot_id = re.findall(r'data-nonce="(.*)"\n data-post-id="(.*)"\n data-url="(.*)"\n data-bot-id="(.*)"\n data-width', response.text)[0]
headers = {