mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 11:44:28 +08:00
* fix: openai response tool use - Added OpenAIResponseStreamListener interface for handling OpenAI response streams. - Implemented attachRawStreamListener method in OpenAIResponseAPIClient to manage raw output. - Updated RawStreamListenerMiddleware to integrate OpenAI response handling. - Refactored BaseApiClient to remove unused attachRawStreamListener method. - Improved buildSdkMessages to handle OpenAI response formats. * fix: remove logging from StreamAdapterMiddleware - Removed Logger.info call from StreamAdapterMiddleware to streamline output and reduce unnecessary logging. * fix: update attachRawStreamListener to return a Promise - Changed attachRawStreamListener method in OpenAIResponseAPIClient to be asynchronous, returning a Promise for better handling of raw output. - Updated RawStreamListenerMiddleware to await the result of attachRawStreamListener, ensuring proper flow of data handling. * refactor: enhance attachRawStreamListener to return a ReadableStream - Updated the attachRawStreamListener method in OpenAIResponseAPIClient to return a ReadableStream, allowing for more efficient handling of streamed responses. - Modified RawStreamListenerMiddleware to accommodate the new return type, ensuring proper integration of the transformed stream into the middleware flow. * refactor: update getResponseChunkTransformer to accept CompletionsContext - Modified the getResponseChunkTransformer method in BaseApiClient and its implementations to accept a CompletionsContext parameter, enhancing the flexibility of response handling. - Adjusted related middleware and client classes to ensure compatibility with the new method signature, improving the overall integration of response transformations. * refactor: update getResponseChunkTransformer to accept CompletionsContext - Modified the getResponseChunkTransformer method in AihubmixAPIClient to accept a CompletionsContext parameter, enhancing the flexibility of response handling. - Ensured compatibility with the updated method signature across related client classes. |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||