mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-27 13:42:19 +03:00
Update Cromicle.py
This commit is contained in:
parent
eb13f3b01d
commit
3b418e8cc5
@ -20,7 +20,7 @@ class Cromicle(AsyncGeneratorProvider):
|
|||||||
proxy: str = None,
|
proxy: str = None,
|
||||||
**kwargs
|
**kwargs
|
||||||
) -> AsyncGenerator:
|
) -> AsyncGenerator:
|
||||||
|
message = messages[-1]["content"]
|
||||||
async with ClientSession(
|
async with ClientSession(
|
||||||
headers=_create_header()
|
headers=_create_header()
|
||||||
) as session:
|
) as session:
|
||||||
@ -46,5 +46,5 @@ def _create_payload(message: str):
|
|||||||
return {
|
return {
|
||||||
'message' : message,
|
'message' : message,
|
||||||
'token' : 'abc',
|
'token' : 'abc',
|
||||||
'hash' : sha256(token.encode() + message.encode()).hexdigest()
|
'hash' : sha256('abc'.encode() + message.encode()).hexdigest()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user