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:
javis-bot
2026-11-11 18:49:08 +09:00
parent a45e198df6
commit 69a884b182
13 changed files with 167 additions and 50 deletions

View File

@@ -17,6 +17,7 @@ from unittest.mock import patch
from conftest import requires_judge_llm
from helpers import (
JUDGE_BASE_URL,
MockConfig, ToolCallCapture,
create_mock_llm_response, create_tool_call,
create_mock_tool_run,
@@ -428,7 +429,7 @@ class TestMemoryEnrichment:
from jarvis.reply.enrichment import extract_search_params_for_memory
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
result = extract_search_params_for_memory(
@@ -466,7 +467,7 @@ class TestMemoryEnrichment:
from jarvis.reply.enrichment import extract_search_params_for_memory
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
context_hint = (
@@ -627,7 +628,7 @@ class TestLiveEndToEnd:
query = "how's the weather this week?"
test_location = "London, England, United Kingdom"
mock_config.ollama_base_url = "http://localhost:11434"
mock_config.ollama_base_url = JUDGE_BASE_URL
mock_config.ollama_chat_model = JUDGE_MODEL
def mock_get_location(**kwargs):
@@ -670,7 +671,7 @@ class TestLiveEndToEnd:
query = "what news from today might interest me?"
capture = ToolCallCapture()
mock_config.ollama_base_url = "http://localhost:11434"
mock_config.ollama_base_url = JUDGE_BASE_URL
mock_config.ollama_chat_model = JUDGE_MODEL
# Provide enrichment context so LLM has user interests available
@@ -768,7 +769,7 @@ class TestLiveEndToEnd:
capture = ToolCallCapture()
mock_config.ollama_base_url = "http://localhost:11434"
mock_config.ollama_base_url = JUDGE_BASE_URL
mock_config.ollama_chat_model = JUDGE_MODEL
mock_enrichment_context = [
@@ -902,7 +903,7 @@ class TestHelpfulness:
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()
@@ -955,7 +956,7 @@ class TestHelpfulness:
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()
@@ -1024,7 +1025,7 @@ class TestHelpfulness:
from jarvis.reply.prompts import detect_model_size, ModelSize
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
is_small = detect_model_size(JUDGE_MODEL) == ModelSize.SMALL
@@ -1120,7 +1121,7 @@ class TestHelpfulness:
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
# Graph enrichment is opt-in via this setting; MockConfig defaults it off.
mock_config.memory_enrichment_source = "all"
@@ -1254,7 +1255,7 @@ class TestHelpfulness:
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
mock_config.memory_enrichment_source = "all"
@@ -1315,7 +1316,7 @@ class TestHelpfulness:
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
mock_config.memory_enrichment_source = "all"