Skip to content

Commit e7c79b1

Browse files
author
balogh.adam@icloud.com
committed
comment
1 parent 6ffa8e2 commit e7c79b1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/opengradient/client/llm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,8 @@ async def _chat_stream(self, params: _ChatParams, messages: List[Dict]) -> Async
474474
exc,
475475
)
476476

477+
# Only reached if the first attempt failed before yielding any chunks.
478+
# Re-resolve the TEE endpoint from the registry and retry once.
477479
await self._refresh_tee()
478480
headers = self._headers(params.x402_settlement_mode)
479481
async with self._http_client.stream(

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)