Files
nyaterm/src-tauri/src
Kang d04eff32bb feat(aiSettings): introduce API format selection for AI provider credentials (#455)
- 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.
2026-08-23 16:00:15 +08:00
..