Skip to content

Commit 4c98a98

Browse files
committed
fix: add HTTPException
1 parent 7d7a69d commit 4c98a98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/api/models/bedrock.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ async def chat_stream(self, chat_request: ChatRequest) -> AsyncIterable[bytes]:
462462
# return an [DONE] message at the end.
463463
yield self.stream_response_to_bytes()
464464
self.think_emitted = False # Cleanup
465+
except HTTPException:
466+
# HTTPException already has Langfuse updated in _invoke_bedrock, re-raise it
467+
raise
465468
except Exception as e:
466469
logger.error("Stream error for model %s: %s", chat_request.model, str(e))
467470
# Update Langfuse with error

0 commit comments

Comments
 (0)