Update chat.py
Browse files
chat.py
CHANGED
@@ -55,7 +55,7 @@ def converse(conversation,provider,model,key,other:dict={}):
|
|
55 |
input = { "messages": inputs }
|
56 |
response = requests.post(f"{API_BASE_URL}{model}", headers=headers, json=input)
|
57 |
return response.json()
|
58 |
-
inputs =
|
59 |
output = run(model, inputs)
|
60 |
print(output)
|
61 |
return json.dumps({'content':output['result']['response']},indent=4)
|
|
|
55 |
input = { "messages": inputs }
|
56 |
response = requests.post(f"{API_BASE_URL}{model}", headers=headers, json=input)
|
57 |
return response.json()
|
58 |
+
inputs = workers_input_parser(conversation)
|
59 |
output = run(model, inputs)
|
60 |
print(output)
|
61 |
return json.dumps({'content':output['result']['response']},indent=4)
|