makecindy / makecindy/cindy

功能建议:自定义厂商模型应支持按模型设置上下文长度

Open
#847 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**客户端版本**: 0.1.20
**反馈类型**: feature

---

## 使用场景
自定义厂商中的模型往往有不同的上下文窗口上限。用户需要让 Cindy 的配置与实际模型能力一致,以免模型配置始终使用不准确的固定值。

当前在自定义厂商模型列表中,多个模型的上下文长度均显示为 `200K`,而且界面没有可输入或编辑上下文长度的位置。

## 诉求
1. Cindy 应根据具体模型的特性,为不同模型提供合理的默认上下文长度,而不是全部固定为 `200K`。
2. 用户应能在自定义厂商模型配置中,为每个模型手动输入或修改上下文长度。
3. 手动设置应覆盖默认值,并在保存后持续生效。

## 建议方案
在每个模型条目旁提供可编辑的“上下文长度”字段:初始值使用系统识别的模型默认值;若无法识别,则采用明确标注的兜底默认值。用户修改并保存后,应将该值作为此模型的实际配置。
---
**OS**: win32 x64 (10.0.22621)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No implementation files, tests, or entry points are named in the issue. Start by locating the custom-vendor model list and its configuration persistence path, then trace how the fixed 200K value is assigned. Done means each model has an editable context-length value, recognized defaults and a documented fallback are used, and an override survives saving and reloading.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.