MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / user

Function user

scripts/e2e_routing_matrix.py:93–100  ·  view source on GitHub ↗
(prompt: str, **extra: Any)

Source from the content-addressed store, hash-verified

91
92
93def user(prompt: str, **extra: Any) -> dict[str, Any]:
94 body = {
95 "model": "uncommon-route/auto",
96 "messages": [{"role": "user", "content": prompt}],
97 "max_tokens": extra.pop("max_tokens", 96),
98 }
99 body.update(extra)
100 return body
101
102
103def cases() -> list[Case]:

Callers 1

casesFunction · 0.85

Calls 2

popMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected