发布

  • Refactor API request flow and streamline response handling

    frostbyte_neo 发布于 2025-07-04 18:27:34 +00:00

    • Replaced SendMessageStream with synchronous SendMessage in API handlers for better manageability.
    • Simplified ConvertCliToOpenAINonStream to reduce complexity and improve efficiency.
    • Adjusted client.go functions to handle both streaming and non-streaming API requests more effectively.
    • Improved error handling and channel communication in API handlers.
    • Removed redundant and unused code for cleaner implementation.
    下载附件