You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes introduce a new #mini model with a large context window but no tool usage, and it is not recommended. A dummy_tool method is
added to handle cases where no tools are assigned. The logic for selecting models based on tags is updated to include the new #mini
model. Additionally, a check is added to append the dummy_tool if no tools are provided.
Copy file name to clipboardExpand all lines: pipes/smart_with_tools.py
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@
58
58
3. Third, reason about what model would best be used. What do your guidelines say about that?
59
59
2. Within the <answer> tag, write out your final answer. Your answer should be a comma seperated list.
60
60
1. First choose the model the final-agent will use. Try to find a good balance between performance and cost. Larger models are bigger.
61
+
- There is #mini, this is a very small model, however it has a very large context window. This model can not use tools. This model is mostly not recommended.
61
62
- Use #small for the simple queries or queries that mostly involve summarization or simple "mindless" work. This also invloves very simple tool use, like converting a file, etc.
62
63
- Use #medium for task that requiere some creativity, writing of code, or complex tool-use.
63
64
- Use #large for tasks that are mostly creative or involve the writing of complex code, math, etc.
@@ -627,6 +628,9 @@ class Valves(BaseModel):
627
628
)
628
629
OPENAI_API_KEY: str=Field(default="", description="Primary API key")
629
630
MODEL_PREFIX: str=Field(default="SMART", description="Prefix before model ID")
631
+
MINI_MODEL: str=Field(
632
+
default="google/gemini-flash-1.5", description="Model for small tasks"
633
+
)
630
634
SMALL_MODEL: str=Field(
631
635
default="openai/gpt-4o-mini", description="Model for small tasks"
0 commit comments