lalashechka commited on
Commit
7b8103c
·
verified ·
1 Parent(s): 9b71b22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -34,13 +34,6 @@ async def generate_response(request_body: RequestBody):
34
  json_data = {'messages': [{'role': 'user','content': input_text}],'model': 'llama-3.1-70b-versatile',}
35
  response = requests.post('https://api.groq.com/openai/v1/chat/completions', headers=headers, json=json_data)
36
  all_chunk = response.json()["choices"][0]["message"]["content"]
37
-
38
- if model == 'bing':
39
- from g4f.client import Client
40
- from g4f import Provider
41
- client = Client()
42
- response = client.chat.completions.create(model="gpt-4o", messages=[{"role": "user", "content": input_text}], provider=Provider.Bing)
43
- all_chunk = response.choices[0].message.content
44
 
45
  if model == "cohere":
46
  key_cohere = os.environ['key_cohere']
 
34
  json_data = {'messages': [{'role': 'user','content': input_text}],'model': 'llama-3.1-70b-versatile',}
35
  response = requests.post('https://api.groq.com/openai/v1/chat/completions', headers=headers, json=json_data)
36
  all_chunk = response.json()["choices"][0]["message"]["content"]
 
 
 
 
 
 
 
37
 
38
  if model == "cohere":
39
  key_cohere = os.environ['key_cohere']