mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-22 23:02:23 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -86,6 +86,31 @@ def test_normal_model_payload_keeps_temperature_above_one(monkeypatch):
|
||||
assert payload["temperature"] == 1.2
|
||||
|
||||
|
||||
def test_local_odysseus_tool_router_preserves_explicit_artifact_budget():
|
||||
payload = {"temperature": 0.2, "max_tokens": 8192}
|
||||
|
||||
llm_core._apply_local_generation_stability(
|
||||
payload,
|
||||
"http://192.168.1.21:18183/v1/chat/completions",
|
||||
"odysseus-qwen3.5-tools-pre-heretic",
|
||||
)
|
||||
|
||||
assert payload["temperature"] == 0.0
|
||||
assert payload["max_tokens"] == 8192
|
||||
|
||||
|
||||
def test_local_odysseus_tool_router_defaults_missing_budget():
|
||||
payload = {"temperature": 0.2}
|
||||
|
||||
llm_core._apply_local_generation_stability(
|
||||
payload,
|
||||
"http://192.168.1.21:18183/v1/chat/completions",
|
||||
"odysseus-qwen3.5-tools-pre-heretic",
|
||||
)
|
||||
|
||||
assert payload["max_tokens"] == 1024
|
||||
|
||||
|
||||
def test_local_minimax_mlx_payload_gets_stability_defaults(monkeypatch):
|
||||
import src.model_context as model_context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user