mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-09-22 16:01:31 +00:00
- Added support for selecting API formats in the AI settings, specifically for OpenAI and compatible providers. - Implemented a new `supportsApiFormatSelection` function to determine if a provider allows API format selection. - Updated the `AiProviderCredential` type to include an `api_format` field, defaulting to "chat_completions". - Enhanced the UI to allow users to select between "chat_completions" and "responses" formats when configuring credentials. - Updated schema version to 6 to reflect changes in the settings structure. - Added tests to ensure proper handling of API format defaults and selection logic.