Update model.py
Browse files
model.py
CHANGED
|
@@ -52,11 +52,12 @@ class LiteLLMModel:
|
|
| 52 |
|
| 53 |
# Call LiteLLM
|
| 54 |
response = litellm.completion(
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 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 |
|