Skip to content

Commit 24f76d8

Browse files
lesebclaude
andcommitted
fix(providers): use await request.aread() in OCI async_auth_flow
The async_auth_flow fallback used the sync request.read() method. Use await request.aread() to stay non-blocking in the async path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Sébastien Han <seb@redhat.com>
1 parent 14994a9 commit 24f76d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/ogx/providers/remote/inference/oci

src/ogx/providers/remote/inference/oci/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.
6161
try:
6262
content = request.content
6363
except httpx.RequestNotRead:
64-
content = request.read()
64+
content = await request.aread()
6565

6666
def _sign(content: bytes) -> dict:
6767
req = requests.Request(

0 commit comments

Comments
 (0)