This pull request addresses error handling improvements in the chat modules and stream functions. It includes the following changes:
Commit c4f1971fc17fd72659a93631a36a46fcac97e394: Standardized error handling in chat modules by simplifying error reporting, consistently raising original exceptions, and streamlining error output for clarity.
Commit 6c3b9328e4177df72ab44b07ce32efe4354f9361: Optimized error handling in stream_response and stream_request by improving error messages, adding exception handling, and refactoring conditional logic for cleaner code.
This pull request addresses error handling improvements in the chat modules and stream functions. It includes the following changes: