feat: rebuild as multi-user web agent

This commit is contained in:
wuyang
2026-07-26 06:52:12 +08:00
parent 45792c8fd5
commit 37f83eaac7
634 changed files with 5060 additions and 139619 deletions
+16
View File
@@ -0,0 +1,16 @@
from agent_platform.models import MODEL_SPECS, get_model_spec, openai_model_list
def test_fixed_public_model_matrix() -> None:
assert set(MODEL_SPECS) == {
"chat-light",
"chat-medium",
"chat-high",
"work-light",
"work-medium",
"work-high",
}
assert get_model_spec("chat-light").provider_model == "ChatGPT-5.6:Luna"
assert get_model_spec("work-medium").provider_model == "ChatGPT-5.6:Terra"
assert get_model_spec("work-high").provider_model == "ChatGPT-5.6:Sol"
assert {item["id"] for item in openai_model_list()["data"]} == set(MODEL_SPECS)