ha1772007 commited on
Commit
afcfca9
·
1 Parent(s): 26fae9a

clodflare and segmind fixed

Browse files
Files changed (1) hide show
  1. chat.py +1 -1
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("@cf/meta/llama-3-8b-instruct", inputs)
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'):