|
|
@ -47,7 +47,7 @@ f = function () {
|
|
|
|
"tryit-" + h + "-" + f(agent + f(agent + f(agent + h + "x")));
|
|
|
|
"tryit-" + h + "-" + f(agent + f(agent + f(agent + h + "x")));
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
payload = {"chas_style": "chat", "chatHistory": json.dumps(messages)}
|
|
|
|
payload = {"chat_style": "chat", "chatHistory": json.dumps(messages)}
|
|
|
|
api_key = js2py.eval_js(token_js)
|
|
|
|
api_key = js2py.eval_js(token_js)
|
|
|
|
headers = {
|
|
|
|
headers = {
|
|
|
|
"api-key": api_key,
|
|
|
|
"api-key": api_key,
|
|
|
@ -60,4 +60,4 @@ f = function () {
|
|
|
|
response.raise_for_status()
|
|
|
|
response.raise_for_status()
|
|
|
|
async for stream in response.content.iter_any():
|
|
|
|
async for stream in response.content.iter_any():
|
|
|
|
if stream:
|
|
|
|
if stream:
|
|
|
|
yield stream.decode()
|
|
|
|
yield stream.decode()
|
|
|
|