diff options
Diffstat (limited to 'g4f/Provider/Cromicle.py')
-rw-r--r-- | g4f/Provider/Cromicle.py | 4 |
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() } |