Skip to content

Commit

Permalink
Add e2e tests for streming endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
onmete committed Jan 9, 2025
1 parent 3e27816 commit 9a7d90d
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ols/app/endpoints/streaming_ols.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,12 @@ async def response_processing_wrapper(
idx += 1
except PromptTooLongError as summarizer_error:
yield prompt_too_long_error(summarizer_error, media_type)
return # stop execution after error

except Exception as summarizer_error:
yield generic_llm_error(summarizer_error, media_type)
return # stop execution after error

timestamps["generate response"] = time.time()

store_data(
Expand Down
Loading

0 comments on commit 9a7d90d

Please sign in to comment.