From 3b418e8cc5765552a22aed72f695c188858ad35e Mon Sep 17 00:00:00 2001 From: Hexye <65314629+HexyeDEV@users.noreply.github.com> Date: Wed, 4 Oct 2023 22:51:41 +0200 Subject: Update Cromicle.py --- g4f/Provider/Cromicle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f') 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() } -- cgit v1.2.3