clodflare and segmind fixed
Browse files
chat.py
CHANGED
@@ -49,7 +49,7 @@ def converse(conversation,provider,model,key,other:dict={}):
|
|
49 |
response = requests.post(f"{API_BASE_URL}{model}", headers=headers, json=input)
|
50 |
return response.json()
|
51 |
inputs = segmind_input_parser(conversation)
|
52 |
-
output = run(
|
53 |
# print(output)
|
54 |
return {'content':output['result']['response']}
|
55 |
elif(provider == 'openrouter'):
|
|
|
49 |
response = requests.post(f"{API_BASE_URL}{model}", headers=headers, json=input)
|
50 |
return response.json()
|
51 |
inputs = segmind_input_parser(conversation)
|
52 |
+
output = run(model, inputs)
|
53 |
# print(output)
|
54 |
return {'content':output['result']['response']}
|
55 |
elif(provider == 'openrouter'):
|