ha1772007 commited on
Commit
5898861
·
verified ·
1 Parent(s): 88ff633

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +1 -1
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 = segmind_input_parser(conversation)
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)