From 7f057e982f9c96849fe11866a9a0d674482e057d Mon Sep 17 00:00:00 2001 From: novaforge61 Date: Wed, 19 Aug 2026 16:06:53 +0800 Subject: [PATCH 1/3] Address automated review: fix DeepSeek effort sets, add wire-path & pricing headers - deepseek-v4-flash: effort [low, high, max] (matches upstream baseline) - deepseek-v4-pro: effort [high, max] (matches upstream baseline) - Add wire-path comment on DeepSeek toggle files (thinking.type passthrough) - Add CNY conversion header (1 USD = 7.15 CNY, 2026-08-18) on all priced files --- providers/coderplan/logo.svg | 8 ++++++++ .../models/anthropic/claude-haiku-4-5.toml | 10 ++++++++++ .../models/anthropic/claude-opus-4-7.toml | 10 ++++++++++ .../models/anthropic/claude-sonnet-4-6.toml | 14 ++++++++++++++ .../models/deepseek/deepseek-v4-flash.toml | 17 +++++++++++++++++ .../models/deepseek/deepseek-v4-pro.toml | 17 +++++++++++++++++ providers/coderplan/models/openai/gpt-5.4.toml | 8 ++++++++ providers/coderplan/models/openai/gpt-5.5.toml | 8 ++++++++ providers/coderplan/provider.toml | 5 +++++ 9 files changed, 97 insertions(+) create mode 100644 providers/coderplan/logo.svg create mode 100644 providers/coderplan/models/anthropic/claude-haiku-4-5.toml create mode 100644 providers/coderplan/models/anthropic/claude-opus-4-7.toml create mode 100644 providers/coderplan/models/anthropic/claude-sonnet-4-6.toml create mode 100644 providers/coderplan/models/deepseek/deepseek-v4-flash.toml create mode 100644 providers/coderplan/models/deepseek/deepseek-v4-pro.toml create mode 100644 providers/coderplan/models/openai/gpt-5.4.toml create mode 100644 providers/coderplan/models/openai/gpt-5.5.toml create mode 100644 providers/coderplan/provider.toml diff --git a/providers/coderplan/logo.svg b/providers/coderplan/logo.svg new file mode 100644 index 00000000000..d644b74abd6 --- /dev/null +++ b/providers/coderplan/logo.svg @@ -0,0 +1,8 @@ + + + + + + $ + + \ No newline at end of file diff --git a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml new file mode 100644 index 00000000000..cd3bad7a721 --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml @@ -0,0 +1,10 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-haiku-4-5" + +[[reasoning_options]] +type = "budget_tokens" +min = 1_024 + +[cost] +input = 0.07 +output = 0.35 diff --git a/providers/coderplan/models/anthropic/claude-opus-4-7.toml b/providers/coderplan/models/anthropic/claude-opus-4-7.toml new file mode 100644 index 00000000000..139d4d39228 --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-opus-4-7.toml @@ -0,0 +1,10 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-opus-4-7" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "xhigh", "max"] + +[cost] +input = 0.35 +output = 1.75 diff --git a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml new file mode 100644 index 00000000000..43dde4ae264 --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml @@ -0,0 +1,14 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-sonnet-4-6" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "max"] + +[[reasoning_options]] +type = "budget_tokens" +min = 1_024 + +[cost] +input = 0.21 +output = 1.05 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml new file mode 100644 index 00000000000..d1cad9034d1 --- /dev/null +++ b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml @@ -0,0 +1,17 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +# Reasoning toggle wire path: OpenAI-compatible `chat.completions` → `thinking.type = enabled|disabled` (DeepSeek-style passthrough) +base_model = "deepseek/deepseek-v4-flash" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["low", "high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 0.34 +output = 1.01 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml new file mode 100644 index 00000000000..f672c37c521 --- /dev/null +++ b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml @@ -0,0 +1,17 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +# Reasoning toggle wire path: OpenAI-compatible `chat.completions` → `thinking.type = enabled|disabled` (DeepSeek-style passthrough) +base_model = "deepseek/deepseek-v4-pro" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 1.01 +output = 3.02 diff --git a/providers/coderplan/models/openai/gpt-5.4.toml b/providers/coderplan/models/openai/gpt-5.4.toml new file mode 100644 index 00000000000..195376b673a --- /dev/null +++ b/providers/coderplan/models/openai/gpt-5.4.toml @@ -0,0 +1,8 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "openai/gpt-5.4" + +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }] + +[cost] +input = 0.12 +output = 0.73 diff --git a/providers/coderplan/models/openai/gpt-5.5.toml b/providers/coderplan/models/openai/gpt-5.5.toml new file mode 100644 index 00000000000..a2836189f70 --- /dev/null +++ b/providers/coderplan/models/openai/gpt-5.5.toml @@ -0,0 +1,8 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "openai/gpt-5.5" + +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }] + +[cost] +input = 0.25 +output = 1.47 diff --git a/providers/coderplan/provider.toml b/providers/coderplan/provider.toml new file mode 100644 index 00000000000..bcc29da6af5 --- /dev/null +++ b/providers/coderplan/provider.toml @@ -0,0 +1,5 @@ +name = "CoderPlan" +env = ["CODERPLAN_API_KEY"] +npm = "@ai-sdk/openai-compatible" +api = "https://api.coderplan.ai/v1" +doc = "https://coderplan.ai/docs/setup" From cf40eadc3c5e1a8b7cf6f11b30c32d7d5d3ee10e Mon Sep 17 00:00:00 2001 From: novaforge61 Date: Thu, 20 Aug 2026 11:15:13 +0800 Subject: [PATCH 2/3] Add cache_input pricing from catalog (same conversion 1 USD = 7.15 CNY) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - claude-sonnet-4-6: cache ¥0.10/1M -> 0.014 - claude-haiku-4-5: ¥0.05 -> 0.007 - gpt-5.5: ¥0.18 -> 0.025 - gpt-5.4: ¥0.09 (standard tier) -> 0.0126 - deepseek-v4-pro: ¥0.24 -> 0.0336 - deepseek-v4-flash: ¥0.08 -> 0.0112 - claude-opus-4-7: left blank pending clean tier confirmation (catalog page groups are ambiguous for this one) --- providers/coderplan/models/anthropic/claude-haiku-4-5.toml | 1 + providers/coderplan/models/anthropic/claude-sonnet-4-6.toml | 1 + providers/coderplan/models/deepseek/deepseek-v4-flash.toml | 1 + providers/coderplan/models/deepseek/deepseek-v4-pro.toml | 1 + providers/coderplan/models/openai/gpt-5.4.toml | 1 + providers/coderplan/models/openai/gpt-5.5.toml | 1 + 6 files changed, 6 insertions(+) diff --git a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml index cd3bad7a721..bba42ed14c2 100644 --- a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml +++ b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml @@ -7,4 +7,5 @@ min = 1_024 [cost] input = 0.07 +cache_input = 0.007 output = 0.35 diff --git a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml index 43dde4ae264..c2eba0f84a6 100644 --- a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml +++ b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml @@ -11,4 +11,5 @@ min = 1_024 [cost] input = 0.21 +cache_input = 0.014 output = 1.05 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml index d1cad9034d1..6dc65f549fd 100644 --- a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml +++ b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml @@ -14,4 +14,5 @@ field = "reasoning_content" [cost] input = 0.34 +cache_input = 0.0112 output = 1.01 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml index f672c37c521..3f1926e048e 100644 --- a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml +++ b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml @@ -14,4 +14,5 @@ field = "reasoning_content" [cost] input = 1.01 +cache_input = 0.0336 output = 3.02 diff --git a/providers/coderplan/models/openai/gpt-5.4.toml b/providers/coderplan/models/openai/gpt-5.4.toml index 195376b673a..ffec7e2120f 100644 --- a/providers/coderplan/models/openai/gpt-5.4.toml +++ b/providers/coderplan/models/openai/gpt-5.4.toml @@ -5,4 +5,5 @@ reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high [cost] input = 0.12 +cache_input = 0.0126 output = 0.73 diff --git a/providers/coderplan/models/openai/gpt-5.5.toml b/providers/coderplan/models/openai/gpt-5.5.toml index a2836189f70..4bc6179a05d 100644 --- a/providers/coderplan/models/openai/gpt-5.5.toml +++ b/providers/coderplan/models/openai/gpt-5.5.toml @@ -5,4 +5,5 @@ reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high [cost] input = 0.25 +cache_input = 0.025 output = 1.47 From 643ed87a39a82129eceb94c2cc4119c150455b4b Mon Sep 17 00:00:00 2001 From: novaforge61 Date: Thu, 20 Aug 2026 12:10:33 +0800 Subject: [PATCH 3/3] Rename cache_input -> cache_read to match strict Cost schema --- providers/coderplan/models/anthropic/claude-haiku-4-5.toml | 2 +- providers/coderplan/models/anthropic/claude-sonnet-4-6.toml | 2 +- providers/coderplan/models/deepseek/deepseek-v4-flash.toml | 2 +- providers/coderplan/models/deepseek/deepseek-v4-pro.toml | 2 +- providers/coderplan/models/openai/gpt-5.4.toml | 2 +- providers/coderplan/models/openai/gpt-5.5.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml index bba42ed14c2..ca2a9fdd6f4 100644 --- a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml +++ b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml @@ -7,5 +7,5 @@ min = 1_024 [cost] input = 0.07 -cache_input = 0.007 +cache_read = 0.007 output = 0.35 diff --git a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml index c2eba0f84a6..7595a40ef0f 100644 --- a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml +++ b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml @@ -11,5 +11,5 @@ min = 1_024 [cost] input = 0.21 -cache_input = 0.014 +cache_read = 0.014 output = 1.05 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml index 6dc65f549fd..e73f1d2519d 100644 --- a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml +++ b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml @@ -14,5 +14,5 @@ field = "reasoning_content" [cost] input = 0.34 -cache_input = 0.0112 +cache_read = 0.0112 output = 1.01 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml index 3f1926e048e..c7ed33374bb 100644 --- a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml +++ b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml @@ -14,5 +14,5 @@ field = "reasoning_content" [cost] input = 1.01 -cache_input = 0.0336 +cache_read = 0.0336 output = 3.02 diff --git a/providers/coderplan/models/openai/gpt-5.4.toml b/providers/coderplan/models/openai/gpt-5.4.toml index ffec7e2120f..1aa57009f60 100644 --- a/providers/coderplan/models/openai/gpt-5.4.toml +++ b/providers/coderplan/models/openai/gpt-5.4.toml @@ -5,5 +5,5 @@ reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high [cost] input = 0.12 -cache_input = 0.0126 +cache_read = 0.0126 output = 0.73 diff --git a/providers/coderplan/models/openai/gpt-5.5.toml b/providers/coderplan/models/openai/gpt-5.5.toml index 4bc6179a05d..b04e7bd9ae6 100644 --- a/providers/coderplan/models/openai/gpt-5.5.toml +++ b/providers/coderplan/models/openai/gpt-5.5.toml @@ -5,5 +5,5 @@ reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high [cost] input = 0.25 -cache_input = 0.025 +cache_read = 0.025 output = 1.47