mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
fix(e2e): route credential, cost map, and UI login calls to the control plane (#42506)
* fix(e2e): route credential, cost map, and UI login calls to the control plane * test(e2e): stop pinning the upstream model name in the credential-backed messages test * test(e2e): drop the harness unit test, the split stack run proves the routing live --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
This commit is contained in:
parent
1373322e0c
commit
e02d5a990c
2 changed files with 3 additions and 0 deletions
|
|
@ -49,5 +49,6 @@ class TestCredentialBackedMessages:
|
|||
extra_body=NO_PROXY_CACHE,
|
||||
)
|
||||
assert message.role == "assistant", f"unexpected role: {message.role!r}"
|
||||
assert message.usage.output_tokens > 0, f"/v1/messages billed no output tokens: {message.usage!r}"
|
||||
text = "".join(block.text for block in message.content if block.type == "text")
|
||||
assert text.strip(), f"/v1/messages returned no text: {message.content!r}"
|
||||
|
|
|
|||
|
|
@ -312,8 +312,10 @@ CONTROL_PLANE_PREFIXES: tuple[str, ...] = (
|
|||
"/global",
|
||||
"/config",
|
||||
"/guardrails",
|
||||
"/credentials",
|
||||
"/router/settings",
|
||||
"/audit",
|
||||
"/public",
|
||||
"/v2/login",
|
||||
"/openapi.json",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue