refactor: use a single agent model path
This commit is contained in:
+8
-12
@@ -1,20 +1,16 @@
|
||||
from agent_platform.bootstrap import _model_payload
|
||||
from agent_platform.bootstrap import LEGACY_MODEL_IDS, _model_payload
|
||||
|
||||
|
||||
def test_bootstrap_models_override_provider_ids_and_are_public() -> None:
|
||||
def test_bootstrap_models_are_agent_only_and_public() -> None:
|
||||
models = _model_payload()
|
||||
assert len(models) == 8
|
||||
assert {model["id"] for model in models} == {"luna", "terra", "sol", "deepseek-v4-pro"}
|
||||
assert all(model["base_model_id"] is None for model in models)
|
||||
assert all(model["params"] == {} for model in models)
|
||||
assert all(model["meta"]["toolIds"] == [] for model in models)
|
||||
assert all(model["meta"]["tags"] == [{"name": "Agent"}] for model in models)
|
||||
assert all(
|
||||
model["access_grants"] == [{"principal_type": "user", "principal_id": "*", "permission": "read"}]
|
||||
for model in models
|
||||
)
|
||||
|
||||
chat = next(model for model in models if model["id"] == "chat-medium")
|
||||
assert chat["params"]["function_calling"] == "native"
|
||||
assert chat["meta"]["toolIds"] == ["server:workspace"]
|
||||
assert chat["meta"]["capabilities"]["builtin_tools"] is False
|
||||
|
||||
work = next(model for model in models if model["id"] == "work-medium")
|
||||
assert work["params"] == {}
|
||||
assert work["meta"]["toolIds"] == []
|
||||
assert "chat-medium" in LEGACY_MODEL_IDS
|
||||
assert "work-medium" in LEGACY_MODEL_IDS
|
||||
|
||||
Reference in New Issue
Block a user