Repository navigation
Conversation
Replace the stale 2025-01 model list with official API prices, add a large-plus-small-plus-cache task estimator, and include three worked examples that match the verification table hand math. Co-authored-by: chico gong <chicogong@users.noreply.github.com>
✅ Deploy Preview for localtools ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
6 tasks done
This branch was successfully deployed
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.
描述 / Description
翻新现有
tools/ai/ai-pricing.html:换成 2026-10-20 核过的官方 API 价,并新增「主 Agent 大模型 + 子 Agent 小模型 + 提示缓存」一次任务估算器,附 3 个与手算一致的算例。不合 master、不上线。未改 #239 / #240 / Dependabot。未跑
npm audit fix --force。对照范围:Notion 范围页 B;核价表已填进可安壳页。
预览
验证 / Validation
本地四检(本变更相关,全部通过):
npm run build npm test npm run lint npm run format:check$0.034752/$0.077740/$0.035710未跑
npm run test:e2e(仓库对存量工具页无对应 e2e)。未登录、未付费。CI 说明(预存在、与本 PR 无关):GitHub
Lintjob 里的npm audit --audit-level=high会因 lockfile 里已有的braces/brace-expansion/undici等高危项失败。这是仓库既有审计债(#240 一类),不是本页改出来的。按停止线不修 Dependabot / braces、不npm audit fix --force、不放宽 CI。核价表
tools/ai/PRICING_VERIFY.md缺官方价的行(o1-mini、Claude 3.5 Sonnet、Gemini 2.0 Flash、DeepSeek V3/R1、Llama 3.3/3.1)待核=是,不写数字。页内对比表也不列入这些模型。
算例(页内 = 手算 = 核价表)
算法不含首次 cache write 溢价、Batch、Fast、区域加价、Gemini 缓存存储小时费。
检查清单 / Checklist
npm run build && npm test && npm run lint && npm run format:check。git diff/git status --short,差异只包含本 PR 预期改动。tools.json描述/关键词并运行npm run sync:tools。