NanmiCoder / NanmiCoder/cc-haha

[discuss] 服务商配置优化

Open
#968 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
8.6k
Avg merge
2d 8h
Merged PRs (30d)
8

Description

提交前确认

  • 我已经阅读了 README 常见问题
  • 我已经升级到最新版本后复现过这个问题
  • 我已经搜索过现有 issues,确认没有重复问题
  • 我已经隐藏截图和日志中的 API Key、Token、Cookie 等敏感信息

问题描述

服务商配置优化:目前服务商是公共配置加特色配置进行组合,还有对特定服务商在代码里特殊处理的,比如thinking,effort,1[m]等,是不是考虑进行统一化,好维护

运行环境

  • 使用方式: 桌面端 / CLI / 其他:
  • 操作系统: Windows / macOS / Linux:
  • 系统版本: 例如 Windows 11 23H2 / macOS 15.4:
  • 桌面端版本: 例如 v0.1.8(设置页 -> 关于 中可查看):
  • 安装来源: GitHub Release / 源码本地构建 / 其他:
  • Bun 版本(CLI 问题填写,bun --version):
  • Node 版本(CLI 问题填写,node --version):

Provider / 模型配置

  • API 提供商: 例如 Anthropic 官方 / OpenRouter / MiniMax / Kimi / Ollama:
  • Base URL:
  • 使用的模型:
  • 相关配置截图:

复现步骤

是否稳定复现: 是 / 否 / 不确定

错误信息与日志

在此粘贴错误信息和日志

截图或录屏

补充信息


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified. Start by locating the provider configuration entry points and the code handling provider-specific options such as thinking and effort, then compare their current paths. Done should mean the desired unified configuration scope is agreed and covered by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.