mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(e2e): use EndpointsClient.proxy after Gateway to ProxyClient rename (#34127)
The mid-conversation-system messages test still referenced the removed client.gateway attribute, so the tests/e2e basedpyright gate reported 9 errors and went red on every e2e PR. EndpointsClient exposes .proxy, so point the /v1/messages post helper at client.proxy.transport.
This commit is contained in:
parent
1d36290551
commit
30ed840ff5
1 changed files with 2 additions and 2 deletions
|
|
@ -88,9 +88,9 @@ def _system_reminder_turn() -> RichMessage:
|
|||
|
||||
|
||||
def _post_messages(client: EndpointsClient, key: str, body: RichMessagesRequest) -> Result[MessagesResult]:
|
||||
return client.gateway.transport.post(
|
||||
return client.proxy.transport.post(
|
||||
"/v1/messages",
|
||||
headers=client.gateway.transport.bearer(key),
|
||||
headers=client.proxy.transport.bearer(key),
|
||||
json=body,
|
||||
response_type=MessagesResult,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue