Ganesh Chintalapati commited on
Commit
aa39f2a
·
1 Parent(s): 76efecf
Files changed (1) hide show
  1. core.py +6 -6
core.py CHANGED
@@ -44,14 +44,14 @@ async def query_model(query: str, providers: List[str], history: List[Dict[str,
44
  gemini_msgs = history.copy()
45
 
46
  if "OpenAI" in providers:
47
- # Replace with: openai_response = await ask_openai(query, history)
48
- openai_msgs.append({"role": "assistant", "content": f"OpenAI echo: {query}"})
49
  if "Anthropic" in providers:
50
- # Replace with: anthropic_response = await ask_anthropic(query, history)
51
- anthropic_msgs.append({"role": "assistant", "content": f"Anthropic echo: {query}"})
52
  if "Gemini" in providers:
53
- # Replace with: gemini_response = await ask_gemini(query, history)
54
- gemini_msgs.append({"role": "assistant", "content": f"Gemini echo: {query}"})
55
 
56
  updated_history = history + [{"role": "user", "content": query}]
57
  yield "", openai_msgs, anthropic_msgs, gemini_msgs, updated_history
 
44
  gemini_msgs = history.copy()
45
 
46
  if "OpenAI" in providers:
47
+ openai_response = await ask_openai(query, history)
48
+ openai_msgs.append({"role": "assistant", "content": openai_response})
49
  if "Anthropic" in providers:
50
+ anthropic_response = await ask_anthropic(query, history)
51
+ anthropic_msgs.append({"role": "assistant", "content": anthropic_response})
52
  if "Gemini" in providers:
53
+ gemini_response = await ask_gemini(query, history)
54
+ gemini_msgs.append({"role": "assistant", "content": gemini_response})
55
 
56
  updated_history = history + [{"role": "user", "content": query}]
57
  yield "", openai_msgs, anthropic_msgs, gemini_msgs, updated_history