File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ async def chat_completion_stream_generator(
301
301
] * num_choices
302
302
else :
303
303
tool_parsers = [None ] * num_choices
304
- except RuntimeError as e :
304
+ except Exception as e :
305
305
logger .exception ("Error in tool parser creation." )
306
306
data = self .create_streaming_error_response (str (e ))
307
307
yield f"data: { data } \n \n "
@@ -591,7 +591,7 @@ async def chat_completion_stream_generator(
591
591
completion_tokens = num_completion_tokens ,
592
592
total_tokens = num_prompt_tokens + num_completion_tokens )
593
593
594
- except ValueError as e :
594
+ except Exception as e :
595
595
# TODO: Use a vllm-specific Validation Error
596
596
logger .exception ("Error in chat completion stream generator." )
597
597
data = self .create_streaming_error_response (str (e ))
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ async def completion_stream_generator(
371
371
# report to FastAPI middleware aggregate usage across all choices
372
372
request_metadata .final_usage_info = final_usage_info
373
373
374
- except ValueError as e :
374
+ except Exception as e :
375
375
# TODO: Use a vllm-specific Validation Error
376
376
data = self .create_streaming_error_response (str (e ))
377
377
yield f"data: { data } \n \n "
You can’t perform that action at this time.
0 commit comments