From 773b8a86384628888cd1aa9759eb4b9c29cc8d5a Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sun, 30 Nov 2025 15:55:38 +0100 Subject: [PATCH] chore(ai): change default model to mistral-tools:7b MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the default agent model from gemma2:9b-instruct-q5_K_M to mistral-tools:7b for improved tool calling support. Testing Results: - All 49 tests pass successfully - Environment tests: 5/5 ✓ - LiteLLM raw tests: 4/4 ✓ - Message format tests: 6/6 ✓ - Agent tests: 7/7 ✓ - API tests: 7/7 ✓ - PydanticAI setup tests: 7/7 ✓ - PydanticAI tools tests: 6/6 ✓ - PydanticAI API tests: 7/7 ✓ The model has been verified to work correctly with: - Simple completions - Streaming responses - Tool calling (calculator, date tools, etc.) - PydanticAI agent framework - All API endpoints 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- services/core-ai/src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core-ai/src/config.py b/services/core-ai/src/config.py index 7dc28f7..7a52833 100644 --- a/services/core-ai/src/config.py +++ b/services/core-ai/src/config.py @@ -25,7 +25,7 @@ class Settings(BaseSettings): ollama_timeout: int = 300 # 5 minutes # Model Configuration - agent_model: str = "gemma2:9b-instruct-q5_K_M" # Optimized for PydanticAI tool calling + agent_model: str = "mistral-tools:7b" # Optimized for PydanticAI tool calling # System Prompt Variants system_prompt_variant: str = "minimal_agent" # For simple mode