Conversation
…lity filtering Introduce a preset provider system that auto-injects predefined providers (OpenAI, Anthropic, Gemini, ZenMux, OpenRouter, SiliconFlow, Ollama) on app startup with disabled status. Key changes: - Add PresetProviderService for automatic preset provider injection - Add providerPresets config with capabilityField/capabilityFilter for model list filtering (e.g. only show vision-capable models) - Sort provider tabs by preset order (preset first, custom after) - Hide delete button for preset providers - Separate Model List button from API suffix select layout - Simplify suffix options to one value per protocol plus "No Suffix" - Add OpenRouter preset with openai protocol - Add i18n support for "No Suffix" across all 6 locales - Fix test setup to include missing API mocks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
新增测试覆盖: - providerPresets: 预设配置、查找函数、唯一性验证 - PresetProviderService: 单例模式、初始化逻辑、错误处理 - provider.handler: getPresets 和 fetchModelList IPC 处理器 - ModelService: 预设排序、getPresets 调用、错误处理、状态指示灯 - Provider: isPreset 属性、Model List 按钮、suffix 选项 相关功能增强: - 添加服务商状态变更回调 (onStatusChanged) - 添加状态呼吸灯样式和动画 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 在 WindowAPI 接口中添加 getPresets 方法 - 在 WindowAPI 接口中添加 fetchModelList 方法 - 更新 tsconfig.app.json 包含类型定义文件 修复了 TypeScript 编译错误: - Property 'getPresets' does not exist on type - Property 'fetchModelList' does not exist on type Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Only run CI on pull requests to master branch, removing redundant push-to-master trigger. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
本 PR 实现了预设服务商系统,允许应用自动注入预配置的 LLM 服务商,并支持从远程 API 获取模型列表。
主要功能
核心功能
UI 改进
IPC 新增
provider:getPresets- 获取所有预设配置provider:fetchModelList- 从远程获取模型列表测试覆盖
总计:788个测试全部通过
变更文件
PresetProviderService.ts、providerPresets.ts及对应测试ModelService.tsx、Provider.tsx、IPC handlers、i18n 文件🤖 Generated with Claude Code