SantoshKumar1310 commited on
Commit
41d3754
·
verified ·
1 Parent(s): 5d71d75

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +6 -5
model.py CHANGED
@@ -52,11 +52,12 @@ class LiteLLMModel:
52
 
53
  # Call LiteLLM
54
  response = litellm.completion(
55
- model=self.model_id,
56
- messages=messages,
57
- tools=formatted_tools,
58
- temperature=0.1
59
- )
 
60
 
61
  message = response.choices[0].message
62
 
 
52
 
53
  # Call LiteLLM
54
  response = litellm.completion(
55
+ model=f"google/{self.model_id}" if "gemini" in self.model_id.lower() else self.model_id,
56
+ messages=messages,
57
+ tools=formatted_tools,
58
+ temperature=0.1
59
+ )
60
+
61
 
62
  message = response.choices[0].message
63