Compare commits

..
4 Commits
Author SHA1 Message Date
KimiSwitch Dev 6e38bed092 docs(website): v0.7.0 更新日志补入 Kimi Eyes 插件站链接
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
2026-08-02 18:18:34 +08:00
KimiSwitch Dev 6df9095ee8 feat(settings): 关于页新增 Kimi Eyes 插件站链接(billowliu2.github.io/kimi-eyes) 2026-08-02 18:12:29 +08:00
KimiSwitch Dev d06fb41f48 chore: bump v0.7.0 + 官网版本文案/更新日志同步
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
2026-08-02 17:17:12 +08:00
KimiSwitch Dev 69f9b8d603 feat(usage): 订阅套餐计价修正 + 识图能力可编辑 + 单套餐用量显示修复
- 订阅套餐零价条目按官方付费模型计价(zhipuai-coding-plan/glm-5.2 → zhipuai/glm-5.2 牌价)
- -highspeed / -free 派生变体自动回退到基础模型价格;Kimi For Coding 无牌价时按旗舰 kimi-k3 估算
- 设置页:image_in 识图能力可手动编辑,原生多模态模型不再提示 kimi-eyes 插件
- 修复仅单个套餐档位时用量卡片不显示的问题
- kimi usages 响应异常时透出原始返回(仅用量数字),便于对照接口排查
- models.dev 价格快照同步
2026-08-02 17:17:06 +08:00
15 changed files with 611 additions and 69 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "kimiswitch", "name": "kimiswitch",
"private": true, "private": true,
"version": "0.6.9", "version": "0.7.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+1 -1
View File
@@ -1958,7 +1958,7 @@ dependencies = [
[[package]] [[package]]
name = "kimiswitch" name = "kimiswitch"
version = "0.6.8" version = "0.7.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "kimiswitch" name = "kimiswitch"
version = "0.6.9" version = "0.7.0"
description = "Kimi Switch - model config manager" description = "Kimi Switch - model config manager"
authors = ["you"] authors = ["you"]
edition = "2021" edition = "2021"
+103 -5
View File
@@ -590,6 +590,20 @@ fn models_dev_lookup(model_name: &str) -> Option<(String, ModelsDevCost)> {
Some((key.clone(), *cost)) Some((key.clone(), *cost))
} }
/// Strip a trailing derived-variant suffix ("-highspeed", "-free") from a
/// model id: plan endpoints expose e.g. `glm-5.2-highspeed`, which bills at
/// the base model's price.
fn strip_variant_suffix(model_name: &str) -> Option<String> {
for suffix in ["-highspeed", "-free"] {
if let Some(base) = model_name.strip_suffix(suffix) {
if !base.is_empty() {
return Some(base.to_string());
}
}
}
None
}
/// Strip a trailing context-size suffix ("-256k", "-128k", "-1m") from a model /// Strip a trailing context-size suffix ("-256k", "-128k", "-1m") from a model
/// id: context variants like "k3-256k" bill at the base model's ("k3") price. /// id: context variants like "k3-256k" bill at the base model's ("k3") price.
/// Returns the stripped id (provider prefix preserved), or None when there is /// Returns the stripped id (provider prefix preserved), or None when there is
@@ -629,6 +643,42 @@ fn match_price(model_name: &str) -> (String, f64, f64, f64, bool) {
result result
} }
/// Suffix-match a model against the models.dev index, skipping zero-priced
/// (subscription-plan) listings so a paid official entry wins. Used as the
/// fallback when the exact hit resolves to a zero-cost plan entry such as
/// `zhipuai-coding-plan/glm-5.2` or `kimi-for-coding/kimi-for-coding`.
fn priced_suffix_lookup(model_name: &str) -> Option<(String, ModelsDevCost)> {
let bare = model_name.rsplit_once('/').map(|(_, b)| b).unwrap_or(model_name);
let bare_l = bare.to_ascii_lowercase();
let mut matches: Vec<(&String, &ModelsDevCost)> = models_dev_cost_index()
.iter()
.filter(|(key, cost)| {
(cost.input > 0.0 || cost.output > 0.0)
&& key
.rsplit_once('/')
.map(|(_, model)| model.ends_with(&bare_l))
.unwrap_or(false)
})
.collect();
if matches.is_empty() {
return None;
}
matches.sort_by(|(a, _), (b, _)| {
provider_rank(a)
.cmp(&provider_rank(b))
.then_with(|| a.cmp(b))
});
let (key, cost) = matches[0];
Some((key.clone(), *cost))
}
/// Subscription-plan models without any priced counterpart in the snapshot
/// (e.g. the "Kimi For Coding" plan endpoint has no per-token price) bill at
/// the flagship model of the same family for cost estimation.
const PLAN_MODEL_FALLBACK: &[(&str, &str)] = &[
("kimi-for-coding", "moonshotai/kimi-k3"),
];
fn match_price_inner(model_name: &str) -> (String, f64, f64, f64, bool) { fn match_price_inner(model_name: &str) -> (String, f64, f64, f64, bool) {
let bare = match model_name.rsplit_once('/') { let bare = match model_name.rsplit_once('/') {
Some((_, b)) => b, Some((_, b)) => b,
@@ -640,11 +690,30 @@ fn match_price_inner(model_name: &str) -> (String, f64, f64, f64, bool) {
return (id, c.cache_read, c.input, c.output, false); return (id, c.cache_read, c.input, c.output, false);
} }
// Zero-priced listing (subscription-plan entries such as // Zero-priced listing (subscription-plan entries such as
// kimi-for-coding/k3-256k): bill at the base model's list price. // zhipuai-coding-plan/glm-5.2 or kimi-for-coding/kimi-for-coding):
if let Some(base) = strip_context_suffix(model_name) { // bill at a priced equivalent — the full id first, then derived
if let Some((base_id, base_c)) = models_dev_lookup(&base) { // variants (-highspeed / -free), then the context-size base, then the
if base_c.input > 0.0 || base_c.output > 0.0 { // curated flagship fallback.
return (base_id, base_c.cache_read, base_c.input, base_c.output, false); for base in [
Some(model_name.to_string()),
strip_variant_suffix(model_name),
strip_context_suffix(model_name),
]
.into_iter()
.flatten()
{
if let Some((bid, bc)) = priced_suffix_lookup(&base) {
if bc.input > 0.0 || bc.output > 0.0 {
return (bid, bc.cache_read, bc.input, bc.output, false);
}
}
}
let bare = model_name.rsplit_once('/').map(|(_, b)| b).unwrap_or(model_name);
let bare_l = bare.to_ascii_lowercase();
for (plan, flagship) in PLAN_MODEL_FALLBACK {
if bare_l.contains(plan) {
if let Some((fid, fc)) = models_dev_lookup(flagship) {
return (fid, fc.cache_read, fc.input, fc.output, false);
} }
} }
} }
@@ -1717,6 +1786,35 @@ mod pricing_tests {
assert_eq!(strip_context_suffix("kimi-k2-thinking"), None); assert_eq!(strip_context_suffix("kimi-k2-thinking"), None);
} }
#[test]
fn subscription_plan_models_bill_at_priced_equivalent() {
// zhipuai-coding-plan/glm-5.2 is a zero-cost plan entry; the priced
// official zhipuai/glm-5.2 must win.
let (id, ch, input, output, est) = match_price("zhipuai-coding-plan/glm-5.2");
assert!(!est);
assert_eq!(id, "zhipuai/glm-5.2");
assert_eq!(input, 1.4);
assert_eq!(output, 4.4);
assert_eq!(ch, 0.26);
// Kimi For Coding has no priced counterpart at all → curated flagship.
let (id, _, input, _, est) = match_price("kimi-code/kimi-for-coding");
assert!(!est);
assert_eq!(id, "moonshotai/kimi-k3");
assert_eq!(input, 3.0);
// -highspeed variants strip back to the priced base model.
let (id, _, input, _, est) = match_price("zhipuai-coding-plan/glm-5.2-highspeed");
assert!(!est);
assert_eq!(id, "zhipuai/glm-5.2");
assert_eq!(input, 1.4);
assert_eq!(
strip_variant_suffix("glm-5.2-highspeed").as_deref(),
Some("glm-5.2")
);
assert_eq!(strip_variant_suffix("glm-5.2"), None);
}
#[test] #[test]
fn cache_write_price_preferred_when_present() { fn cache_write_price_preferred_when_present() {
// glm-4.6 has cache_write: 0 → cache creation billed at 0, not input. // glm-4.6 has cache_write: 0 → cache creation billed at 0, not input.
+14 -1
View File
@@ -79,7 +79,20 @@ pub async fn query_kimi_coding(api_key: &str, timeout: Duration) -> Result<Usage
) )
.await? .await?
{ {
Fetched::Body(body) => Ok(UsageResult::ok(parse_kimi_coding(&body))), Fetched::Body(body) => {
let tiers = parse_kimi_coding(&body);
if tiers.is_empty() {
// 响应里没有可解析的套餐档位(limits/usage 缺失或字段变了)。
// 把原始响应(仅用量数字,无密钥)透出,方便对照接口结构修复。
let preview = serde_json::to_string(&body)
.unwrap_or_else(|_| "<unserializable body>".into());
let trimmed: String = preview.chars().take(400).collect();
return Ok(UsageResult::failure(format!(
"kimi usages 响应无套餐数据,原始返回: {trimmed}"
)));
}
Ok(UsageResult::ok(tiers))
}
Fetched::Failed(err) => Ok(err), Fetched::Failed(err) => Ok(err),
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"productName": "Kimi Switch", "productName": "Kimi Switch",
"version": "0.6.9", "version": "0.7.0",
"identifier": "com.kimiswitch.app", "identifier": "com.kimiswitch.app",
"build": { "build": {
"beforeDevCommand": "npm run dev", "beforeDevCommand": "npm run dev",
+16 -7
View File
@@ -699,6 +699,7 @@ function ModelMapping({
<td className="px-4 py-2"> <td className="px-4 py-2">
<CapabilitiesCell <CapabilitiesCell
capabilities={m.capabilities || []} capabilities={m.capabilities || []}
nativeImage={getModelRef(m.model)?.image === true}
onChange={(next) => onChange={(next) =>
onModelChange({ ...m, capabilities: next }) onModelChange({ ...m, capabilities: next })
} }
@@ -822,9 +823,13 @@ function JsonPreview({
function CapabilitiesCell({ function CapabilitiesCell({
capabilities, capabilities,
onChange, onChange,
nativeImage,
}: { }: {
capabilities: string[]; capabilities: string[];
onChange: (next: string[]) => void; onChange: (next: string[]) => void;
/** 模型本身是否原生支持图像输入(models.dev `image` 能力)。原生多模态
* 模型无需 kimi-eyes 插件,提示不展示。 */
nativeImage?: boolean;
}) { }) {
const { t } = useTranslation(); const { t } = useTranslation();
@@ -838,13 +843,12 @@ function CapabilitiesCell({
return ( return (
<div className="flex flex-wrap items-center gap-x-3 gap-y-1.5"> <div className="flex flex-wrap items-center gap-x-3 gap-y-1.5">
{/* Only `thinking` is user-editable. The other capabilities {/* `thinking` 与 `image_in`(识图)可手动编辑;其余能力
(always_thinking / image_in / video_in / tool_use) are still (always_thinking / video_in / tool_use) 仍由 models.dev 自动派生,
auto-derived from models.dev via `capabilitiesFromRef` and saved 保存时照常写入 config.toml。 */}
to config.toml — they just aren't exposed for manual editing. {KNOWN_CAPABILITIES.filter(
To restore the full editor, drop the `.filter(...)` below and (cap) => cap === "thinking" || cap === "image_in",
re-add the custom-capabilities input (see git history). */} ).map((cap) => (
{KNOWN_CAPABILITIES.filter((cap) => cap === "thinking").map((cap) => (
<label <label
key={cap} key={cap}
className="flex items-center gap-1 text-xs text-content-muted cursor-pointer" className="flex items-center gap-1 text-xs text-content-muted cursor-pointer"
@@ -858,6 +862,11 @@ function CapabilitiesCell({
{t(CAPABILITY_LABELS[cap])} {t(CAPABILITY_LABELS[cap])}
</label> </label>
))} ))}
{capabilities.includes("image_in") && !nativeImage && (
<span className="w-full text-[11px] text-content-muted">
{t("capImageInHint")}
</span>
)}
</div> </div>
); );
} }
+12
View File
@@ -384,6 +384,18 @@ export function SettingsModal({
billowliu2.github.io/KimiSwitch billowliu2.github.io/KimiSwitch
</button> </button>
</div> </div>
<div>
{t("kimiEyesSite")}:{" "}
<button
type="button"
onClick={() =>
openExternal("https://billowliu2.github.io/kimi-eyes")
}
className="text-blue-500 hover:text-blue-400 underline bg-transparent p-0 border-0 cursor-pointer"
>
billowliu2.github.io/kimi-eyes
</button>
</div>
<div> <div>
{t("attributionPorted")}{" "} {t("attributionPorted")}{" "}
<button <button
+3 -1
View File
@@ -357,7 +357,9 @@ export function UsageFooter({
// success, or error/loading with last-good data (ghost). // success, or error/loading with last-good data (ghost).
// Compact header already shows the primary entry; detail only adds value // Compact header already shows the primary entry; detail only adds value
// when there are multiple tiers (e.g. 5h + weekly) or on error ghost. // when there are multiple tiers (e.g. 5h + weekly) or on error ghost.
if (data.length <= 1 && status === "success") return null; // NOTE: single-tier plans (e.g. only five_hour) must still render — hiding
// them made kimi-for-coding look like it had no plan quota at all.
if (data.length === 0 && status === "success") return null;
const ghost = status !== "success"; const ghost = status !== "success";
return ( return (
<div <div
+2
View File
@@ -163,6 +163,7 @@ export const enTranslations: Record<TranslationKey, string> = {
capThinking: "Thinking", capThinking: "Thinking",
capAlwaysThinking: "Always Thinking", capAlwaysThinking: "Always Thinking",
capImageIn: "Image Input", capImageIn: "Image Input",
capImageInHint: "Text models actually need the plugin-kimi-eyes:kimi-eyes plugin for image recognition",
capVideoIn: "Video Input", capVideoIn: "Video Input",
capToolUse: "Tool Use", capToolUse: "Tool Use",
customCapabilities: "Other capabilities (comma-separated)", customCapabilities: "Other capabilities (comma-separated)",
@@ -262,6 +263,7 @@ export const enTranslations: Record<TranslationKey, string> = {
lastChecked: "Last checked", lastChecked: "Last checked",
appDescription: "Windows desktop LLM provider config manager", appDescription: "Windows desktop LLM provider config manager",
settingsWebsite: "Official website", settingsWebsite: "Official website",
kimiEyesSite: "Kimi Eyes plugin site",
referenceProject: "Reference project", referenceProject: "Reference project",
// Validation errors // Validation errors
+2
View File
@@ -161,6 +161,7 @@ export const zhTranslations = {
capThinking: "思考", capThinking: "思考",
capAlwaysThinking: "始终思考", capAlwaysThinking: "始终思考",
capImageIn: "图像输入", capImageIn: "图像输入",
capImageInHint: "文本推理模型实际需要搭配 plugin-kimi-eyes:kimi-eyes 插件才能识图",
capVideoIn: "视频输入", capVideoIn: "视频输入",
capToolUse: "工具调用", capToolUse: "工具调用",
customCapabilities: "其他能力(逗号分隔)", customCapabilities: "其他能力(逗号分隔)",
@@ -257,6 +258,7 @@ export const zhTranslations = {
lastChecked: "上次检查", lastChecked: "上次检查",
appDescription: "Windows 桌面端 LLM 供应商配置管理器", appDescription: "Windows 桌面端 LLM 供应商配置管理器",
settingsWebsite: "官方网站", settingsWebsite: "官方网站",
kimiEyesSite: "Kimi Eyes 插件站",
referenceProject: "引用项目", referenceProject: "引用项目",
// Validation errors // Validation errors
+225 -21
View File
@@ -1,5 +1,5 @@
{ {
"last_updated": "2026-08-01", "last_updated": "2026-08-02",
"providers": { "providers": {
"zhipuai": { "zhipuai": {
"id": "zhipuai", "id": "zhipuai",
@@ -766,6 +766,20 @@
"tool_call": true, "tool_call": true,
"structured_output": true "structured_output": true
}, },
{
"id": "accounts/fireworks/models/deepseek-v4-flash-0731",
"name": "DeepSeek V4 Flash 0731",
"cost": {
"input": 0.14,
"output": 0.28,
"cache_read": 0.028
},
"context": 1000000,
"output_limit": 384000,
"reasoning": true,
"tool_call": true,
"structured_output": true
},
{ {
"id": "accounts/fireworks/models/kimi-k2p7-code", "id": "accounts/fireworks/models/kimi-k2p7-code",
"name": "Kimi K2.7 Code", "name": "Kimi K2.7 Code",
@@ -1630,6 +1644,23 @@
"image": true, "image": true,
"video": true "video": true
}, },
{
"id": "gemini/gemini-3.5-flash-lite",
"name": "Gemini 3.5 Flash Lite",
"cost": {
"input": 0.3,
"output": 2.5,
"cache_read": 0.03,
"cache_write": 0.3
},
"context": 1048576,
"output_limit": 65536,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true
},
{ {
"id": "gemini/gemini-3-flash-preview", "id": "gemini/gemini-3-flash-preview",
"name": "Gemini 3 Flash Preview", "name": "Gemini 3 Flash Preview",
@@ -4720,6 +4751,21 @@
"tool_call": true, "tool_call": true,
"structured_output": true "structured_output": true
}, },
{
"id": "thinkingmachines/inkling-small",
"name": "Inkling Small",
"cost": {
"input": 0.5,
"output": 1.2,
"cache_read": 0.1
},
"context": 1048576,
"output_limit": 32768,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true
},
{ {
"id": "thinkingmachines/inkling", "id": "thinkingmachines/inkling",
"name": "Inkling", "name": "Inkling",
@@ -4816,6 +4862,20 @@
"reasoning": true, "reasoning": true,
"tool_call": true "tool_call": true
}, },
{
"id": "deepseek-ai/DeepSeek-V4-Flash-0731",
"name": "DeepSeek V4 Flash 0731",
"cost": {
"input": 0.13,
"output": 0.26,
"cache_read": 0.028
},
"context": 1048576,
"output_limit": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true
},
{ {
"id": "deepseek-ai/DeepSeek-V3.1", "id": "deepseek-ai/DeepSeek-V3.1",
"name": "DeepSeek V3.1", "name": "DeepSeek V3.1",
@@ -7573,7 +7633,7 @@
"tool_call": true "tool_call": true
}, },
{ {
"id": "glm-5.2-highspeed[1m]", "id": "glm-5.2-highspeed",
"name": "GLM-5.2 Highspeed", "name": "GLM-5.2 Highspeed",
"cost": { "cost": {
"input": 0, "input": 0,
@@ -46613,7 +46673,7 @@
"structured_output": true "structured_output": true
}, },
{ {
"id": "glm-5.2-highspeed[1m]", "id": "glm-5.2-highspeed",
"name": "GLM-5.2 Highspeed", "name": "GLM-5.2 Highspeed",
"cost": { "cost": {
"input": 0, "input": 0,
@@ -56446,6 +56506,133 @@
} }
] ]
}, },
"modelis": {
"id": "modelis",
"name": "Modelis",
"models": [
{
"id": "claude-sonnet-4-6",
"name": "Claude Sonnet 4.6",
"cost": {
"input": 3,
"output": 15
},
"context": 1000000,
"output_limit": 64000,
"reasoning": true,
"tool_call": true,
"image": true
},
{
"id": "gemini-2.5-flash",
"name": "Gemini 2.5 Flash",
"cost": {
"input": 0.3,
"output": 2.5
},
"context": 1048576,
"output_limit": 65536,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true
},
{
"id": "claude-fable-5",
"name": "Claude Fable 5",
"cost": {
"input": 10,
"output": 50
},
"context": 1000000,
"output_limit": 128000,
"reasoning": true,
"tool_call": true,
"image": true
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek V4 Flash",
"cost": {
"input": 0.0983,
"output": 0.1966
},
"context": 1000000,
"output_limit": 384000,
"reasoning": true,
"tool_call": true,
"structured_output": true
},
{
"id": "claude-opus-4-8",
"name": "Claude Opus 4.8",
"cost": {
"input": 5,
"output": 25
},
"context": 1000000,
"output_limit": 128000,
"reasoning": true,
"tool_call": true,
"image": true
},
{
"id": "deepseek-v4-pro",
"name": "DeepSeek V4 Pro",
"cost": {
"input": 0.435,
"output": 0.87
},
"context": 1000000,
"output_limit": 384000,
"reasoning": true,
"tool_call": true,
"structured_output": true
},
{
"id": "gemini-2.5-pro",
"name": "Gemini 2.5 Pro",
"cost": {
"input": 1.25,
"output": 10
},
"context": 1048576,
"output_limit": 65536,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true
},
{
"id": "qwen/qwen3.7-plus",
"name": "Qwen3.7 Plus",
"cost": {
"input": 0.768,
"output": 3.072
},
"context": 1000000,
"output_limit": 64000,
"reasoning": true,
"tool_call": true,
"image": true,
"video": true
},
{
"id": "qwen/qwen3.7-max",
"name": "Qwen3.7 Max",
"cost": {
"input": 3,
"output": 9
},
"context": 1000000,
"output_limit": 65536,
"reasoning": true,
"tool_call": true
}
]
},
"subconscious": { "subconscious": {
"id": "subconscious", "id": "subconscious",
"name": "Subconscious", "name": "Subconscious",
@@ -64671,13 +64858,14 @@
"id": "thinkingmachines/inkling-small", "id": "thinkingmachines/inkling-small",
"name": "Inkling Small", "name": "Inkling Small",
"cost": { "cost": {
"input": 0.58, "input": 0.5,
"output": 1.44, "output": 1.2,
"cache_read": 0.116 "cache_read": 0.1
}, },
"context": 524288, "context": 524288,
"output_limit": 262144, "output_limit": 262144,
"reasoning": true, "reasoning": true,
"tool_call": true,
"image": true "image": true
}, },
{ {
@@ -64715,6 +64903,20 @@
"output_limit": 128000, "output_limit": 128000,
"tool_call": true "tool_call": true
}, },
{
"id": "~deepseek/deepseek-v4-flash-latest",
"name": "DeepSeek V4 Flash Latest",
"cost": {
"input": 0.09,
"output": 0.18,
"cache_read": 0.018
},
"context": 1048576,
"output_limit": 65536,
"reasoning": true,
"tool_call": true,
"structured_output": true
},
{ {
"id": "perceptron/perceptron-mk1", "id": "perceptron/perceptron-mk1",
"name": "Perceptron Mk1", "name": "Perceptron Mk1",
@@ -64896,10 +65098,10 @@
"name": "Qwen3-Coder 30B-A3B Instruct", "name": "Qwen3-Coder 30B-A3B Instruct",
"cost": { "cost": {
"input": 0.07, "input": 0.07,
"output": 0.27 "output": 0.28
}, },
"context": 262144, "context": 262144,
"output_limit": 32768, "output_limit": 262144,
"tool_call": true, "tool_call": true,
"structured_output": true "structured_output": true
}, },
@@ -66316,14 +66518,15 @@
"id": "deepseek/deepseek-v4-flash-0731", "id": "deepseek/deepseek-v4-flash-0731",
"name": "DeepSeek V4 Flash 0731", "name": "DeepSeek V4 Flash 0731",
"cost": { "cost": {
"input": 0.14, "input": 0.09,
"output": 0.28, "output": 0.18,
"cache_read": 0.0028 "cache_read": 0.018
}, },
"context": 1048576, "context": 1048576,
"output_limit": 384000, "output_limit": 65536,
"reasoning": true, "reasoning": true,
"tool_call": true "tool_call": true,
"structured_output": true
}, },
{ {
"id": "deepseek/deepseek-v3.2", "id": "deepseek/deepseek-v3.2",
@@ -67178,12 +67381,12 @@
"id": "z-ai/glm-5.2", "id": "z-ai/glm-5.2",
"name": "GLM-5.2", "name": "GLM-5.2",
"cost": { "cost": {
"input": 1.12, "input": 0.4186,
"output": 3.52, "output": 1.3156,
"cache_read": 0.208 "cache_read": 0.07774
}, },
"context": 1048576, "context": 1048576,
"output_limit": 128000, "output_limit": 131072,
"reasoning": true, "reasoning": true,
"tool_call": true, "tool_call": true,
"structured_output": true "structured_output": true
@@ -67348,9 +67551,9 @@
"id": "moonshotai/kimi-k2.6", "id": "moonshotai/kimi-k2.6",
"name": "Kimi K2.6", "name": "Kimi K2.6",
"cost": { "cost": {
"input": 0.589, "input": 0.6,
"output": 2.48, "output": 3.41,
"cache_read": 0.0992 "cache_read": 0.2
}, },
"context": 262144, "context": 262144,
"output_limit": 262144, "output_limit": 262144,
@@ -67605,7 +67808,8 @@
"name": "GPT OSS 20B", "name": "GPT OSS 20B",
"cost": { "cost": {
"input": 0.03, "input": 0.03,
"output": 0.14 "output": 0.13,
"cache_read": 0.03
}, },
"context": 131072, "context": 131072,
"output_limit": 131072, "output_limit": 131072,
+187 -17
View File
@@ -1,5 +1,5 @@
{ {
"last_updated": "2026-08-01", "last_updated": "2026-08-02",
"zhipuai/glm-5": { "zhipuai/glm-5": {
"name": "GLM-5", "name": "GLM-5",
"context": 204800, "context": 204800,
@@ -600,6 +600,18 @@
"cache_read": 0.145 "cache_read": 0.145
} }
}, },
"fireworks-ai/accounts/fireworks/models/deepseek-v4-flash-0731": {
"name": "DeepSeek V4 Flash 0731",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"cost": {
"input": 0.14,
"output": 0.28,
"cache_read": 0.028
}
},
"fireworks-ai/accounts/fireworks/models/kimi-k2p7-code": { "fireworks-ai/accounts/fireworks/models/kimi-k2p7-code": {
"name": "Kimi K2.7 Code", "name": "Kimi K2.7 Code",
"context": 262000, "context": 262000,
@@ -1320,6 +1332,21 @@
"cache_write": 0.3 "cache_write": 0.3
} }
}, },
"crossmodel/gemini/gemini-3.5-flash-lite": {
"name": "Gemini 3.5 Flash Lite",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true,
"cost": {
"input": 0.3,
"output": 2.5,
"cache_read": 0.03,
"cache_write": 0.3
}
},
"crossmodel/gemini/gemini-3-flash-preview": { "crossmodel/gemini/gemini-3-flash-preview": {
"name": "Gemini 3 Flash Preview", "name": "Gemini 3 Flash Preview",
"context": 1048576, "context": 1048576,
@@ -3884,6 +3911,19 @@
"cache_read": 0.12 "cache_read": 0.12
} }
}, },
"baseten/thinkingmachines/inkling-small": {
"name": "Inkling Small",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"cost": {
"input": 0.5,
"output": 1.2,
"cache_read": 0.1
}
},
"baseten/thinkingmachines/inkling": { "baseten/thinkingmachines/inkling": {
"name": "Inkling", "name": "Inkling",
"context": 1048576, "context": 1048576,
@@ -3966,6 +4006,18 @@
"output": 1.2 "output": 1.2
} }
}, },
"baseten/deepseek-ai/DeepSeek-V4-Flash-0731": {
"name": "DeepSeek V4 Flash 0731",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"cost": {
"input": 0.13,
"output": 0.26,
"cache_read": 0.028
}
},
"baseten/deepseek-ai/DeepSeek-V3.1": { "baseten/deepseek-ai/DeepSeek-V3.1": {
"name": "DeepSeek V3.1", "name": "DeepSeek V3.1",
"context": 164000, "context": 164000,
@@ -6220,7 +6272,7 @@
"cache_write": 0 "cache_write": 0
} }
}, },
"zhipuai-coding-plan/glm-5.2-highspeed[1m]": { "zhipuai-coding-plan/glm-5.2-highspeed": {
"name": "GLM-5.2 Highspeed", "name": "GLM-5.2 Highspeed",
"context": 1000000, "context": 1000000,
"reasoning": true, "reasoning": true,
@@ -38091,7 +38143,7 @@
"cache_write": 0 "cache_write": 0
} }
}, },
"zai-coding-plan/glm-5.2-highspeed[1m]": { "zai-coding-plan/glm-5.2-highspeed": {
"name": "GLM-5.2 Highspeed", "name": "GLM-5.2 Highspeed",
"context": 1000000, "context": 1000000,
"reasoning": true, "reasoning": true,
@@ -46335,6 +46387,109 @@
"output": 2.92 "output": 2.92
} }
}, },
"modelis/claude-sonnet-4-6": {
"name": "Claude Sonnet 4.6",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"image": true,
"cost": {
"input": 3,
"output": 15
}
},
"modelis/gemini-2.5-flash": {
"name": "Gemini 2.5 Flash",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true,
"cost": {
"input": 0.3,
"output": 2.5
}
},
"modelis/claude-fable-5": {
"name": "Claude Fable 5",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"image": true,
"cost": {
"input": 10,
"output": 50
}
},
"modelis/deepseek-v4-flash": {
"name": "DeepSeek V4 Flash",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"cost": {
"input": 0.0983,
"output": 0.1966
}
},
"modelis/claude-opus-4-8": {
"name": "Claude Opus 4.8",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"image": true,
"cost": {
"input": 5,
"output": 25
}
},
"modelis/deepseek-v4-pro": {
"name": "DeepSeek V4 Pro",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"cost": {
"input": 0.435,
"output": 0.87
}
},
"modelis/gemini-2.5-pro": {
"name": "Gemini 2.5 Pro",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"image": true,
"video": true,
"cost": {
"input": 1.25,
"output": 10
}
},
"modelis/qwen/qwen3.7-plus": {
"name": "Qwen3.7 Plus",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"image": true,
"video": true,
"cost": {
"input": 0.768,
"output": 3.072
}
},
"modelis/qwen/qwen3.7-max": {
"name": "Qwen3.7 Max",
"context": 1000000,
"reasoning": true,
"tool_call": true,
"cost": {
"input": 3,
"output": 9
}
},
"subconscious/subconscious/glm-5.2": { "subconscious/subconscious/glm-5.2": {
"name": "GLM-5.2", "name": "GLM-5.2",
"context": 1000000, "context": 1000000,
@@ -53164,11 +53319,12 @@
"name": "Inkling Small", "name": "Inkling Small",
"context": 524288, "context": 524288,
"reasoning": true, "reasoning": true,
"tool_call": true,
"image": true, "image": true,
"cost": { "cost": {
"input": 0.58, "input": 0.5,
"output": 1.44, "output": 1.2,
"cache_read": 0.116 "cache_read": 0.1
} }
}, },
"openrouter/thinkingmachines/inkling": { "openrouter/thinkingmachines/inkling": {
@@ -53200,6 +53356,18 @@
"output": 3 "output": 3
} }
}, },
"openrouter/~deepseek/deepseek-v4-flash-latest": {
"name": "DeepSeek V4 Flash Latest",
"context": 1048576,
"reasoning": true,
"tool_call": true,
"structured_output": true,
"cost": {
"input": 0.09,
"output": 0.18,
"cache_read": 0.018
}
},
"openrouter/perceptron/perceptron-mk1": { "openrouter/perceptron/perceptron-mk1": {
"name": "Perceptron Mk1", "name": "Perceptron Mk1",
"context": 32768, "context": 32768,
@@ -53359,7 +53527,7 @@
"structured_output": true, "structured_output": true,
"cost": { "cost": {
"input": 0.07, "input": 0.07,
"output": 0.27 "output": 0.28
} }
}, },
"openrouter/qwen/qwen3.5-plus-02-15": { "openrouter/qwen/qwen3.5-plus-02-15": {
@@ -54560,10 +54728,11 @@
"context": 1048576, "context": 1048576,
"reasoning": true, "reasoning": true,
"tool_call": true, "tool_call": true,
"structured_output": true,
"cost": { "cost": {
"input": 0.14, "input": 0.09,
"output": 0.28, "output": 0.18,
"cache_read": 0.0028 "cache_read": 0.018
} }
}, },
"openrouter/deepseek/deepseek-v3.2": { "openrouter/deepseek/deepseek-v3.2": {
@@ -55297,9 +55466,9 @@
"tool_call": true, "tool_call": true,
"structured_output": true, "structured_output": true,
"cost": { "cost": {
"input": 1.12, "input": 0.4186,
"output": 3.52, "output": 1.3156,
"cache_read": 0.208 "cache_read": 0.07774
} }
}, },
"openrouter/z-ai/glm-4.6": { "openrouter/z-ai/glm-4.6": {
@@ -55442,9 +55611,9 @@
"structured_output": true, "structured_output": true,
"image": true, "image": true,
"cost": { "cost": {
"input": 0.589, "input": 0.6,
"output": 2.48, "output": 3.41,
"cache_read": 0.0992 "cache_read": 0.2
} }
}, },
"openrouter/moonshotai/kimi-k2.7-code": { "openrouter/moonshotai/kimi-k2.7-code": {
@@ -55657,7 +55826,8 @@
"structured_output": true, "structured_output": true,
"cost": { "cost": {
"input": 0.03, "input": 0.03,
"output": 0.14 "output": 0.13,
"cache_read": 0.03
} }
}, },
"openrouter/openai/gpt-oss-safeguard-20b": { "openrouter/openai/gpt-oss-safeguard-20b": {
+36 -6
View File
@@ -16,10 +16,10 @@ const zh = {
performance: "性能", performance: "性能",
changelog: "更新日志", changelog: "更新日志",
download: "下载", download: "下载",
downloadBtn: "下载 v0.6.9", downloadBtn: "下载 v0.7.0",
}, },
hero: { hero: {
badge: "v0.6.9 · 开源 MIT · Windows / macOS / Linux", badge: "v0.7.0 · 开源 MIT · Windows / macOS / Linux",
titleBefore: "统一管理你的", titleBefore: "统一管理你的",
titleAccent: "AI 供应商", titleAccent: "AI 供应商",
titleAfter: "", titleAfter: "",
@@ -140,6 +140,21 @@ const zh = {
syncedNote: "数据已同步 GitHub Releases", syncedNote: "数据已同步 GitHub Releases",
fallbackNote: "内置版本记录", fallbackNote: "内置版本记录",
entries: [ entries: [
{
version: "v0.7.0",
date: "2026-08-02",
items: [
"订阅套餐模型计价修正:零价条目按官方付费模型计价(zhipuai-coding-plan/glm-5.2 按 zhipuai/glm-5.2 牌价)",
"-highspeed / -free 派生变体自动回退到基础模型价格",
"Kimi For Coding 套餐无牌价时按旗舰模型 kimi-k3 价格估算用量",
"设置页:识图(image_in)能力可手动编辑,原生多模态模型不再提示 kimi-eyes 插件",
"修复仅单个套餐档位(如 5 小时)时用量卡片不显示的问题",
"kimi usages 响应异常时透出原始返回,便于对照接口排查",
"models.dev 价格快照同步",
"关于页新增官方网站链接",
"设置-关于页新增 Kimi Eyes 识图插件站链接",
],
},
{ {
version: "v0.6.9", version: "v0.6.9",
date: "2026-08-01", date: "2026-08-01",
@@ -245,7 +260,7 @@ const zh = {
}, },
download: { download: {
title: "下载 Kimi Switch", title: "下载 Kimi Switch",
subtitle: "当前版本 v0.6.9 · Windows / macOS / Linux 三平台已发布", subtitle: "当前版本 v0.7.0 · Windows / macOS / Linux 三平台已发布",
autoUpdate: "应用内置自动检测更新,新版本发布后在设置页一键升级。", autoUpdate: "应用内置自动检测更新,新版本发布后在设置页一键升级。",
ready: "已发布", ready: "已发布",
wip: "开发中", wip: "开发中",
@@ -313,10 +328,10 @@ const en: Dict = {
performance: "Performance", performance: "Performance",
changelog: "Changelog", changelog: "Changelog",
download: "Download", download: "Download",
downloadBtn: "Download v0.6.9", downloadBtn: "Download v0.7.0",
}, },
hero: { hero: {
badge: "v0.6.9 · Open source MIT · Windows / macOS / Linux", badge: "v0.7.0 · Open source MIT · Windows / macOS / Linux",
titleBefore: "One app for all your ", titleBefore: "One app for all your ",
titleAccent: "AI providers", titleAccent: "AI providers",
titleAfter: "", titleAfter: "",
@@ -437,6 +452,21 @@ const en: Dict = {
syncedNote: "Synced from GitHub Releases", syncedNote: "Synced from GitHub Releases",
fallbackNote: "Built-in release notes", fallbackNote: "Built-in release notes",
entries: [ entries: [
{
version: "v0.7.0",
date: "2026-08-02",
items: [
"Plan-entry pricing fix: zero-price plan listings bill at the official priced model (zhipuai-coding-plan/glm-5.2 → zhipuai/glm-5.2)",
"-highspeed / -free derived variants fall back to the base model price",
"Kimi For Coding (no list price) estimates usage at the flagship kimi-k3 rate",
"Settings: image_in capability is now manually editable; native multimodal models no longer show the kimi-eyes plugin hint",
"Fix single-tier plans (e.g. 5-hour only) showing no usage card",
"kimi usages failure now exposes the raw response for easier debugging",
"models.dev price snapshot sync",
"About page gains an official website link",
"Settings-About page gains a Kimi Eyes plugin site link",
],
},
{ {
version: "v0.6.9", version: "v0.6.9",
date: "2026-08-01", date: "2026-08-01",
@@ -550,7 +580,7 @@ const en: Dict = {
}, },
download: { download: {
title: "Download Kimi Switch", title: "Download Kimi Switch",
subtitle: "Current version v0.6.9 · Windows, macOS and Linux now released", subtitle: "Current version v0.7.0 · Windows, macOS and Linux now released",
autoUpdate: "Built-in update detection: upgrade in one click from Settings when a new version ships.", autoUpdate: "Built-in update detection: upgrade in one click from Settings when a new version ships.",
ready: "Available", ready: "Available",
wip: "In development", wip: "In development",
+7 -7
View File
@@ -8,25 +8,25 @@ const icons: Record<string, Icon> = {
linux: LinuxLogo, linux: LinuxLogo,
}; };
const VERSION = "0.6.9"; const VERSION = "0.7.0";
const GITHUB = "https://github.com/billowliu2/KimiSwitch"; const GITHUB = "https://github.com/billowliu2/KimiSwitch";
const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releases"; const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releases";
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`; const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
/** Per-platform download assets for the current release (names match the CI /** Per-platform download assets for the current release (names match the CI
* release workflow, e.g. Kimi.Switch_0.6.9_x64_en-US.msi). */ * release workflow, e.g. Kimi.Switch_0.7.0_x64_en-US.msi). */
const assets: Record<string, { label: string; href: string }[]> = { const assets: Record<string, { label: string; href: string }[]> = {
windows: [ windows: [
{ label: "MSI", href: dl("Kimi.Switch_0.6.9_x64_en-US.msi") }, { label: "MSI", href: dl("Kimi.Switch_0.7.0_x64_en-US.msi") },
{ label: "镜像", href: MIRROR_RELEASES }, { label: "镜像", href: MIRROR_RELEASES },
], ],
macos: [ macos: [
{ label: "Apple Silicon (.dmg)", href: dl("Kimi.Switch_0.6.9_aarch64.dmg") }, { label: "Apple Silicon (.dmg)", href: dl("Kimi.Switch_0.7.0_aarch64.dmg") },
], ],
linux: [ linux: [
{ label: ".deb", href: dl("Kimi.Switch_0.6.9_amd64.deb") }, { label: ".deb", href: dl("Kimi.Switch_0.7.0_amd64.deb") },
{ label: ".AppImage", href: dl("Kimi.Switch_0.6.9_amd64.AppImage") }, { label: ".AppImage", href: dl("Kimi.Switch_0.7.0_amd64.AppImage") },
{ label: ".rpm", href: dl("Kimi.Switch-0.6.9-1.x86_64.rpm") }, { label: ".rpm", href: dl("Kimi.Switch-0.7.0-1.x86_64.rpm") },
], ],
}; };