wire llms, ui tweaks
This commit is contained in:
@@ -25,6 +25,9 @@ class Endpoints:
|
||||
def crew_notes(flight_id: str) -> str:
|
||||
return f"/scenarios/data/crew-notes/{flight_id}"
|
||||
|
||||
# Config
|
||||
CONFIG_LLM = "/config/llm"
|
||||
|
||||
# Agents
|
||||
AGENT_FCE = "/agents/fce"
|
||||
AGENT_HANDOVER = "/agents/handover"
|
||||
|
||||
@@ -194,9 +194,15 @@ class TestPassengerServer:
|
||||
"gate": "H14",
|
||||
}
|
||||
})
|
||||
text = _parse_result(result)
|
||||
data = _parse_result(result)
|
||||
# Response is JSON with text + provider
|
||||
if isinstance(data, dict):
|
||||
assert "text" in data
|
||||
assert "provider" in data
|
||||
text = data["text"]
|
||||
else:
|
||||
text = str(data)
|
||||
assert "UA432" in text
|
||||
assert "DELAYED" in text or "delayed" in text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_list_prompts(self):
|
||||
|
||||
Reference in New Issue
Block a user