mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
* feat(OpenAI): new Responses API support - Added OpenAICompatibleProvider to handle requests for OpenAI-compatible models. - Updated ProviderSettings to reflect changes in provider types from 'openai' to 'openai-compatible'. - Enhanced model validation and response handling in OpenAIProvider to support new input formats. - Refactored existing components to accommodate the new provider structure and ensure compatibility with OpenAI's response API. - Incremented store version to 98 to reflect changes in provider types and settings. - Updated migration logic to convert existing 'openai' provider types to 'openai-compatible' where applicable. * refactor(OpenAI): update model validation and response handling - Renamed `isOpenAIModel` to `isOpenAILLMModel` for clarity in model type checking. - Updated references to the new model validation function across `OpenAICompatibleProvider` and `OpenAIProvider`. - Enhanced web search model validation logic to accommodate new model checks. - Refactored `getOpenAIWebSearchParams` to return structured parameters based on model type. - Improved citation formatting in message blocks for better web search results handling. * fix(OpenAICompatibleProvider): reset timestamps for first token handling - Updated logic to reset timestamps for the first token and content when no prior thinking content is present. - Added comments for clarity on the purpose of the changes and marked a temporary fix for timestamp handling. * refactor(OpenAICompatibleProvider): improve code readability with consistent formatting * fix(OpenAIProvider): refine service tier logic for model identification * fix: eslint error * fix(OpenAIProvider): enhance response metrics tracking in streaming process * feat(OpenAIProvider): add timeout handling for model requests --------- Co-authored-by: 自由的世界人 <3196812536@qq.com> |
||
|---|---|---|
| .. | ||
| main | ||
| preload | ||
| renderer | ||