summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorHexye <65314629+HexyeDEV@users.noreply.github.com>2023-10-04 22:51:41 +0200
committerGitHub <noreply@github.com>2023-10-04 22:51:41 +0200
commit3b418e8cc5765552a22aed72f695c188858ad35e (patch)
treef94ad4cdb4df167c27867f3bbd9bcf2848d1a649 /g4f/Provider
parentCreate Cromicle.py (diff)
downloadgpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar.gz
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar.bz2
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar.lz
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar.xz
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.tar.zst
gpt4free-3b418e8cc5765552a22aed72f695c188858ad35e.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Cromicle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Cromicle.py b/g4f/Provider/Cromicle.py
index 9c2ae4bc..bd29544d 100644
--- a/g4f/Provider/Cromicle.py
+++ b/g4f/Provider/Cromicle.py
@@ -20,7 +20,7 @@ class Cromicle(AsyncGeneratorProvider):
proxy: str = None,
**kwargs
) -> AsyncGenerator:
-
+ message = messages[-1]["content"]
async with ClientSession(
headers=_create_header()
) as session:
@@ -46,5 +46,5 @@ def _create_payload(message: str):
return {
'message' : message,
'token' : 'abc',
- 'hash' : sha256(token.encode() + message.encode()).hexdigest()
+ 'hash' : sha256('abc'.encode() + message.encode()).hexdigest()
}