Commit Graph
1553 Commits
Author SHA1 Message Date
Adam-PAN d8bb3527ea feat: 通过 models.dev 在启动时自动更新各厂商最新模型与定价
E2E Tests / matrix_prep (push) Canceled after 0s
E2E Tests / e2e (push) Canceled after 0s
Tests / Quality Checks (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Tests / test (windows-latest) (push) Canceled after 0s
Tests / test-platform-integration (push) Canceled after 0s
Tests / qlty (push) Canceled after 0s
- 设置 新增两个开关:通过 models.dev 更新模型(默认开)、通过 models.dev 更新定价(默认关)- 勾选时每次启动从 models.dev/models.json 与 api.json 拉取最新模型目录与价格,合并进各厂商模型列表(保留本地精调元数据)- 目录缓存至磁盘作为离线回退,并通过 gRPC 订阅 + 订阅后主动拉取推送至 webview,消除启动竞态- 新增 RPC:refreshModelsDevModelsRpc / subscribeToModelsDevModels- 版本升级至 4.4.0,更新 CHANGELOG
2026-09-29 15:13:59 +08:00
Adam-PAN 6965212ff7 fix: resolve Base URL input garbled text and collapsed width in API settings
- Fix scrambled text when typing in Base URL fields: debounced input hook now ignores echo round-trips of its own saves and defers unexpected external updates during an edit grace period

- Serialize API configuration saves through a queue so rapid successive updates are applied in order on the backend

- Fix Base URL input collapsing to tiny width: Radix TooltipTrigger now renders a full-width block wrapper instead of the default shrink-to-fit button

- Trim Base URL values only on commit instead of every keystroke to prevent cursor jumps

- Skip redundant save on mount and flush uncommitted edits on unmount

- Bump version to 4.3.1, update CHANGELOG and README
2026-09-17 02:53:43 +08:00
Adam-PAN 8fbb954218 fix: restore modelId param in SubagentRunner.createMessageWithInitialChunkRetry 2026-09-01 23:31:30 +08:00
Adam-PAN 1f2646e685 v4.2.0: context compression improvements & multimodal image stripping
Context Compression:
- auto-condense extended to all models with >=200K context window
- 500K+ context windows use 92% buffer (was conservative formula)
- added summarizeTaskLite template for <200K models
- fileOptimizationThreshold now configurable (default 0.3)

Multimodal Image Handling:
- auto-strip images when switching from vision to text-only models
- one-time notification per task session
- images preserved in history, auto-restored when switching back

Bug Fixes:
- fixed API errors when switching multimodal to text-only model mid-conversation
2026-09-01 23:29:42 +08:00
Adam-PAN 04f2c1c16a v3.86.11: friendly error cards, real-time cost display, per-profile pricing
- Add friendly Chinese error cards for ModelNotFound, ContentFiltered, ServerError, Timeout, Network
- Add real-time Token/Cost display bar in chat footer
- Fix #1: per-profile price storage - each API profile independently stores and restores pricing
- Add price input fields for DeepSeek provider
- Fix '400 Invalid assistant message' for DeepSeek V4
- Fix reasoning-only models returning empty responses
- Fix tool_choice from 'required' to 'auto' for reasoning models
- Fix API Key cleared when switching profiles
- Bump version to 3.86.11
- Update CHANGELOG and README
2026-08-19 20:33:48 +08:00
Adam-PAN 7aa4fd50c7 fix: add thinking budget to DeepSeek to reduce verbose reasoning output 2026-08-01 12:58:59 +08:00
Adam-PAN dd8a57b234 fix: disable garbled Chinese tool descriptions causing missing parameter errors 2026-08-01 12:32:06 +08:00
Adam-PAN d2b86a9bf8 fix: force tool_choice=required for reasoning models (Mimo, Qwen, OpenAI-compatible) 2026-08-01 04:07:56 +08:00
Adam-PAN bf12d4ba8b fix: force DeepSeek V4 to use tools, fix API key saving, fix base URL width 2026-08-01 03:59:14 +08:00
Adam-PAN ead52776ce feat: rebrand to Cline Multi - multi-model hot switching support 2026-07-24 01:20:50 +08:00
HybridTalentComputing 4ac8a0ad95 feat: update DeepSeek and Hicap model configurations and improve button localization 2026-06-28 23:02:49 +08:00
HybridTalentComputing dce8946498 fix(auth): remove unnecessary 'from' parameter from auth URL 2026-06-16 22:04:59 +08:00
HybridTalentComputing a8496114b0 fix(hooks): resolve global hooks dir via localized documents path
钩子的"写入/界面"路径与"发现/执行"路径之前不一致:写入侧(createHook /
toggleHook / deleteHook / refreshHooks)硬编码 os.homedir()/"Documents"
"Cline"/"Hooks",而执行侧(disk.ts ensureHooksDirectoryExists →
getDocumentsPath)正确读取系统本地化的 Documents 路径。

在 Linux 中文系统(文档目录本地化为 ~/文档)上,这导致钩子被存进凭空
新建的 ~/Documents/Cline/Hooks,界面可见但无法执行;移到 ~/文档 后执行
得了但界面又识别不到。Rules/Workflows/MCP 不受影响,因为它们走的是
disk.ts 的 getDocumentsPath()。

修复:让 resolveHooksDirectory() 与 refreshHooks() 复用 getDocumentsPath()
(Linux 走 xdg-user-dir,Windows 走 MyDocuments 特殊文件夹),与执行管线
统一,消除两套路径实现的不一致。globalHooksDirOverride 优先级保持不变,
测试不受影响。

upstream v3.86.1→v3.89.2 范围内未修复此 bug,本补丁为独立修复。
2026-06-16 20:25:16 +08:00
HybridTalentComputing 72aab3d9ac docs: update download milestone in README and improve HTTP headers in OpenRouterHandler 2026-06-02 21:51:40 +08:00
HybridTalentComputing 724424a6bb feat: add ShengSuanYun login handling and callback processing 2026-06-02 21:40:12 +08:00
HybridTalentComputing 92b97fb580 refactor: remove redundant API provider updates in auth handling 2026-06-02 21:17:24 +08:00
HybridTalentComputingandClaude Opus 4.7 9056a0df32 feat: add shengsuanyun provider (synced from main branch)
Add 胜算云 (ShengSuanYun) as an independent API provider with API key
authentication and dynamic model selection. Core files copied from main
branch with minimal import path adaptations for v3.86.1 compatibility.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 23:59:45 +08:00
HybridTalentComputingandClaude Opus 4.7 8ee0490867 fix: restore biome.jsonc config and fix lint errors for v3.86.1 build
Restored biome.jsonc from main branch to fix 764 lint errors caused by
incorrect config (root:false, missing VCS section, wrong schema). Also
disabled useIterableCallbackReturn rule which is new in biome 2.3.x.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 21:16:50 +08:00
HybridTalentComputing 7d16bc806a feat: reapply prompt localization, branding, and MCP naming on v3.86.1 2026-06-01 19:47:40 +08:00
HybridTalentComputing 1144bab296 feat: restore cline-chinese extension identity on v3.86.1 2026-06-01 19:41:15 +08:00
HybridTalentComputing f17f13370c chore: reapply cline-chinese localization baseline on v3.86.1 2026-06-01 19:39:51 +08:00
HybridTalentComputing 1bd829e583 chore: sync upstream v3.86.1 baseline into root layout 2026-06-01 19:22:08 +08:00
HybridTalentComputing 00922d7cf9 feat: update MCP settings file references to 'cline_chinese_mcp_settings.json' across the codebase 2026-05-25 23:26:32 +08:00
HybridTalentComputing b675ac1b3e Add multilingual support for system prompt tools
- Enhanced tools to support English and Simplified Chinese descriptions and instructions.
- Updated `read_file`, `replace_in_file`, `search_files`, `subagent`, `use_mcp_tool`, `use_skill`, `web_fetch`, `web_search`, and `write_to_file` to include locale-based instruction handling.
- Improved user experience by providing localized messages for tool descriptions and parameter instructions.
2026-05-25 20:22:47 +08:00
HybridTalentComputing 704be7b32c feat: enhance tool completion instructions with localized support and detailed guidance 2026-05-25 20:12:15 +08:00
HybridTalentComputing cc4c66d5b1 feat: add Chinese localization support for tool use prompts and guidelines
- Implemented locale-based formatting for tool use sections, including guidelines and instructions, to support Chinese (zh-CN) language.
- Added new Chinese templates for tool use formatting, guidelines, user instructions, and task descriptions.
- Enhanced tool specifications to include locale-aware descriptions and instructions.
- Introduced utility functions for locale detection and text selection based on the user's language preference.
- Updated SystemPromptContext to include locale information for better context handling.
2026-05-25 20:11:16 +08:00
HybridTalentComputing 13542459c8 Refactor command identifiers and configuration keys to use 'cline-chinese' prefix 2026-05-19 11:25:09 +08:00
HybridTalentComputing 532575edaf v3.83.0 sync 2026-05-15 17:23:57 +08:00
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00
coohu e35bd61310 fix: X-Title 2026-02-11 10:11:04 +08:00
HybridTalentComputing eeceb74e77 Merge pull request #74 from shengsuan/fix_mpm
增加获取api_key 失败提醒
2026-02-03 18:12:05 +08:00
coohu b805d19819 fix:增加了获取api_key 失败提醒。 2026-02-03 16:56:44 +08:00
HybridTalentComputing de6c43fe61 更新 ShengSuanYunHandler 和 refreshShengSuanYunModels 以确保默认使用 chat completions API,修复 endPoints 处理逻辑 2026-01-31 16:00:53 +08:00
HybridTalentComputing 7990abd1f4 删除免费的小米模型,添加文档按钮 2026-01-31 00:18:11 +08:00
HybridTalentComputing c000e1cc1c 解决trae,cursor登录问题 2026-01-30 22:53:50 +08:00
HybridTalentComputing 0342d4c4a4 修复openai compatible执行效果不好的问题 2026-01-27 23:05:17 +08:00
HybridTalentComputing ac6b27bd02 feat: improve OpenAI Compatible stability by using XML tags for non-official providers 2026-01-27 22:11:41 +08:00
HybridTalentComputing c3e756d394 bugfix 2026-01-22 20:30:16 +08:00
HybridTalentComputing 53da426551 bugfix 2026-01-22 20:25:07 +08:00
HybridTalentComputing 8ee0f9fdc8 将cline键值换成cline chinese 2026-01-21 23:46:38 +08:00
coohu ea6203cf55 添加胜算云认证。 2026-01-20 11:59:57 +08:00
coohu f1dcec7ada merge SSYCloud/cline-chinese-ssy 2026-01-19 15:50:24 +08:00
shengsuan-cloud 55f0428243 延迟登操作,登录先刷新 acces token. 2026-01-13 11:11:48 +08:00
shengsuan-cloud 78d0988a33 add ssy model recommendations. 2026-01-07 10:49:57 +08:00
shengsuan-cloud 4f1dbe369a remove redundant modules. 2025-12-31 18:06:42 +08:00
shengsuan-cloud f6032d9c87 merge 2025-12-30 13:45:34 +08:00
chenxue c35ba37402 Update aihubmix.ts (#8311) 2025-12-28 07:44:09 -08:00
Robin Newhouse 850a6ab841 Fix Gemini/OpenRouter failures from corrupted reasoning details and missing thought signatures (#8291)
* fix(api): filter Gemini reasoning details by tool call ID

Filter reasoning details in the OpenAI format transformer to ensure they
only include entries matching the specific tool call ID. This prevents
"Function call is missing a thought_signature" errors when using Gemini
models, where mismatched reasoning details would cause API validation
failures.

* fix(gemini): drop invalid thought signatures and corrupted reasoning_details

- Gemini direct: drop tool_use/thinking blocks when signature is missing
- OpenRouter: keep only tool reasoning_details matching tool id
- Skip reasoning.encrypted entries missing data to avoid 400s (#8214)

* fix(core): sanitize Gemini tool calls in OpenRouter stream

Gemini models require thought signatures for tool calls. When switching providers mid-conversation, historical tool calls may lack these reasoning details, causing subsequent requests to fail.

This change implements a filter for Gemini models that:
- Identifies assistant messages with tool calls but no reasoning details.
- Drops those tool calls while preserving textual content.
- Removes the corresponding tool response messages to maintain conversation integrity.
2025-12-26 13:10:22 -08:00
yuvalman ac01e69555 fix: sap provider - regression in claude models in native api mode (#8278)
* fix: regression in claude models in native api mode for sap provider
2025-12-23 14:05:19 -08:00
HybridTalentComputing e33feb513f 继续汉化 2025-12-23 22:27:51 +08:00