test(evals): run the evals against any server named by EVAL_JUDGE_BASE_URL, including /v1
Ten eval files pinned their reply engine to http://localhost:11434 and the judge only spoke Ollama's /api/tags and /api/chat, so pointing the suite at Strata (OpenAI-compatible /v1 only) skipped or broke most evals. - MockConfig and every eval config read EVAL_JUDGE_BASE_URL. - The judge availability check reads /v1/models and the judge call goes through jarvis.llm when the URL ends in /v1; the Ollama path is unchanged. - run_evals.sh probes /models for a /v1 URL. The intent-judge and listener evals stay pinned to gemma4:e2b on local Ollama. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ import pytest
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from conftest import requires_judge_llm
|
||||
from helpers import ToolCallCapture, create_mock_tool_run
|
||||
from helpers import ToolCallCapture, create_mock_tool_run, JUDGE_BASE_URL
|
||||
|
||||
|
||||
def _fake_graph_nodes():
|
||||
@@ -154,7 +154,7 @@ class TestPossessorFieldRepro:
|
||||
from jarvis.reply.engine import run_reply_engine
|
||||
from helpers import JUDGE_MODEL
|
||||
|
||||
mock_config.ollama_base_url = "http://localhost:11434"
|
||||
mock_config.ollama_base_url = JUDGE_BASE_URL
|
||||
mock_config.ollama_chat_model = JUDGE_MODEL
|
||||
|
||||
capture = ToolCallCapture()
|
||||
@@ -325,7 +325,7 @@ class TestPossessorFieldRepro:
|
||||
" Link: https://www.amazon.co.uk/Possessor-Andrea-Riseborough/dp/B08MXZDZCB\n"
|
||||
)
|
||||
|
||||
mock_config.ollama_base_url = "http://localhost:11434"
|
||||
mock_config.ollama_base_url = JUDGE_BASE_URL
|
||||
mock_config.ollama_chat_model = JUDGE_MODEL
|
||||
capture = ToolCallCapture()
|
||||
|
||||
@@ -500,7 +500,7 @@ class TestPossessorFieldRepro:
|
||||
" Link: https://www.channel4.com/programmes/possessor\n"
|
||||
)
|
||||
|
||||
mock_config.ollama_base_url = "http://localhost:11434"
|
||||
mock_config.ollama_base_url = JUDGE_BASE_URL
|
||||
mock_config.ollama_chat_model = JUDGE_MODEL
|
||||
capture = ToolCallCapture()
|
||||
|
||||
@@ -643,7 +643,7 @@ class TestPossessorFieldRepro:
|
||||
"and Christopher Abbott."
|
||||
)
|
||||
|
||||
mock_config.ollama_base_url = "http://localhost:11434"
|
||||
mock_config.ollama_base_url = JUDGE_BASE_URL
|
||||
mock_config.ollama_chat_model = JUDGE_MODEL
|
||||
# Force digest ON regardless of model-size auto-detection so this
|
||||
# case runs the digest path deterministically.
|
||||
|
||||
Reference in New Issue
Block a user