Skip to content

[codex] enhance dataeyesai channel importer - #1134

Draft
cyf1124906008-ai wants to merge 17 commits into
qixing-jk:mainfrom
cyf1124906008-ai:codex/dataeyesai-desktop
Draft

[codex] enhance dataeyesai channel importer#1134
cyf1124906008-ai wants to merge 17 commits into
qixing-jk:mainfrom
cyf1124906008-ai:codex/dataeyesai-desktop

Conversation

@cyf1124906008-ai

@cyf1124906008-ai cyf1124906008-ai commented Jul 6, 2026

Copy link
Copy Markdown

变更内容

  • 新增 dataeyesai 可视化 New API 渠道 Key 批量导入器,支持多站点、分组、模型重定向、复制既有渠道配置和批量独立渠道
  • 支持 OpenAI、Anthropic、Gemini、DeepSeek、OpenRouter、AWS Bedrock、Azure、Vertex AI 等 New API 默认渠道配置
  • Key、组合凭证和额度默认明文显示,可分别手动隐藏,便于写入前核对
  • 额度可选择统一额度或逐条额度;统一额度整批只填一次并由后端应用到全部 Key
  • 新增定时上 Key 队列,可精确到秒设置首次执行时间,并自定义每批数量和执行间隔;等待或暂停的任务可随时修改设置
  • 批量独立建渠道可按 Key 原始顺序自动递减优先级,定时任务跨批次也不重置顺序
  • 上 Key 台账按每次写入批次汇总时间、成功数量、录入额度、累计消耗和请求数,每条 Key 明细按需展开
  • 新记录使用批次 ID 精确归组;升级前的旧记录按站点、供应商、操作类型和相近写入时间归组
  • 日期、数量、金额等数据统一使用清晰的无衬线阿拉伯数字
  • 新增 Key 用量监测看板,可按 New API 地址与录入日期查看额度、累计消费、剩余比例、请求数和每日分组
  • 新增 Electron 桌面版及 macOS/Windows 安装包配置,并发布 v0.5.1 三平台预览安装包

原因

让非开发电脑无需手动运行脚本即可批量管理 New API 渠道,让批量额度不必逐条重复填写,并让大量 Key 的写入历史能够按“什么时候、一次上了多少、录入多少额度、目前用了多少”快速查看。

用户影响

  • Key 与金额第一次输入时直接可见,发现粘贴错误后可以立即修改;需要遮挡时再点击隐藏
  • 同一批 Key 金额相同只需填写一次,也可切换回逐条额度
  • Key 可以立即写入或进入加密定时队列,执行时间可精确到秒
  • 活跃或暂停的定时任务可修改时间、每批数量和间隔
  • 批量独立渠道可设置起始优先级和递减步长
  • 上 Key 记录不再平铺成长表,最新批次默认展开,其余批次可按需查看明细
  • 多个 New API 站点分别记录渠道、额度与消费

验证

  • pnpm test:channel-importer:106 项通过
  • pnpm run validate:staged:通过
  • pnpm run validate:push:TypeScript 与 Knip 通过
  • Git pre-commit 与 pre-push hooks:通过
  • 浏览器实测 Key、统一额度、逐条额度的默认明文和隐藏切换
  • 使用本机 121 条以上真实历史记录验证批次归组、汇总和展开明细
  • 本地 v0.5.1 Apple Silicon DMG 已构建并通过 hdiutil verify

安全与发布说明

  • 普通录入台账只保存 Key 尾号和不可逆指纹
  • 定时任务中的待写入 Key 仅以本机加密形式暂存
  • 默认明文仅影响当前本地输入框,不会让台账保存完整 Key
  • 当前预览安装包尚未配置 Apple/Microsoft 代码签名证书,首次运行可能出现系统安全提示

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ead541ed-1321-4491-95f6-1bbd2a8fdf19

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cyf1124906008-ai cyf1124906008-ai changed the title [codex] add dataeyesai desktop installers [codex] enhance dataeyesai channel importer Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant