Browse Source
feat: update default model to gemini-3.6-flash-high, integrate NewHorizon provider, and simplify agent guardrails
master
feat: update default model to gemini-3.6-flash-high, integrate NewHorizon provider, and simplify agent guardrails
master
11 changed files with 72 additions and 18 deletions
-
11.env.example
-
4Dockerfile
-
7config/development.env
-
12config/models.yaml
-
6config/production.env
-
5docker-compose.yml
-
2src/agents/base_agent.py
-
6src/core/config.py
-
6src/core/settings.py
-
13src/models/factory.py
-
18tests/unit/test_model_factory.py
@ -0,0 +1,18 @@ |
|||
""" |
|||
Unit tests for ModelFactory with new default model (gemini-3.6-flash-high) |
|||
""" |
|||
import pytest |
|||
from unittest.mock import patch, Mock |
|||
from src.models.factory import ModelFactory |
|||
|
|||
def test_model_factory_default(): |
|||
factory = ModelFactory() |
|||
model = factory.get_model() |
|||
# Check that default model loaded is gemini-3.6-flash-high |
|||
assert model.id == "gemini-3.6-flash-high" |
|||
assert model.base_url == "http://ai.newhorizonco.uk/v1" |
|||
|
|||
def test_model_factory_get_specific_model(): |
|||
factory = ModelFactory() |
|||
model = factory.get_model("gemini_flash") |
|||
assert model.id == "gemini-3.6-flash-high" |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue