From 02dcaa886cafce72a54463b24367193773b307a2 Mon Sep 17 00:00:00 2001 From: amdmsz Date: Sun, 12 Jul 2026 06:42:59 +0800 Subject: [PATCH 1/3] Add provider: Byesu (AI API gateway) Adds byesu.com as a provider with its on-sale text models, inheriting canonical metadata via base_model. Includes a currentColor logo and reasoning_options per AGENTS.md. Serves an OpenAI-compatible endpoint plus an Anthropic-native Messages API from the same host. Co-Authored-By: Claude Opus 4.8 --- providers/byesu/logo.svg | 4 ++++ providers/byesu/models/claude-opus-4-8.toml | 5 +++++ providers/byesu/models/claude-sonnet-5.toml | 6 ++++++ providers/byesu/models/gemini-3.1-pro.toml | 8 ++++++++ providers/byesu/models/gpt-5.5.toml | 5 +++++ providers/byesu/models/gpt-5.6-luna.toml | 5 +++++ providers/byesu/models/gpt-5.6-sol.toml | 5 +++++ providers/byesu/models/gpt-5.6-terra.toml | 5 +++++ providers/byesu/models/grok-4.5.toml | 5 +++++ providers/byesu/provider.toml | 10 ++++++++++ 10 files changed, 58 insertions(+) create mode 100644 providers/byesu/logo.svg create mode 100644 providers/byesu/models/claude-opus-4-8.toml create mode 100644 providers/byesu/models/claude-sonnet-5.toml create mode 100644 providers/byesu/models/gemini-3.1-pro.toml create mode 100644 providers/byesu/models/gpt-5.5.toml create mode 100644 providers/byesu/models/gpt-5.6-luna.toml create mode 100644 providers/byesu/models/gpt-5.6-sol.toml create mode 100644 providers/byesu/models/gpt-5.6-terra.toml create mode 100644 providers/byesu/models/grok-4.5.toml create mode 100644 providers/byesu/provider.toml diff --git a/providers/byesu/logo.svg b/providers/byesu/logo.svg new file mode 100644 index 0000000000..e732f7c088 --- /dev/null +++ b/providers/byesu/logo.svg @@ -0,0 +1,4 @@ + + + + diff --git a/providers/byesu/models/claude-opus-4-8.toml b/providers/byesu/models/claude-opus-4-8.toml new file mode 100644 index 0000000000..207a1835af --- /dev/null +++ b/providers/byesu/models/claude-opus-4-8.toml @@ -0,0 +1,5 @@ +base_model = "anthropic/claude-opus-4-8" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "xhigh", "max"] diff --git a/providers/byesu/models/claude-sonnet-5.toml b/providers/byesu/models/claude-sonnet-5.toml new file mode 100644 index 0000000000..af541012d8 --- /dev/null +++ b/providers/byesu/models/claude-sonnet-5.toml @@ -0,0 +1,6 @@ +base_model = "anthropic/claude-sonnet-5" +structured_output = true + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "xhigh", "max"] diff --git a/providers/byesu/models/gemini-3.1-pro.toml b/providers/byesu/models/gemini-3.1-pro.toml new file mode 100644 index 0000000000..19035b8918 --- /dev/null +++ b/providers/byesu/models/gemini-3.1-pro.toml @@ -0,0 +1,8 @@ +# Served on Byesu under the stable id `gemini-3.1-pro`; the upstream catalog +# entry for this model is google/gemini-3.1-pro-preview. +base_model = "google/gemini-3.1-pro-preview" +name = "Gemini 3.1 Pro" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high"] diff --git a/providers/byesu/models/gpt-5.5.toml b/providers/byesu/models/gpt-5.5.toml new file mode 100644 index 0000000000..28509d7d42 --- /dev/null +++ b/providers/byesu/models/gpt-5.5.toml @@ -0,0 +1,5 @@ +base_model = "openai/gpt-5.5" + +[[reasoning_options]] +type = "effort" +values = ["none", "low", "medium", "high", "xhigh"] diff --git a/providers/byesu/models/gpt-5.6-luna.toml b/providers/byesu/models/gpt-5.6-luna.toml new file mode 100644 index 0000000000..7320e33282 --- /dev/null +++ b/providers/byesu/models/gpt-5.6-luna.toml @@ -0,0 +1,5 @@ +base_model = "openai/gpt-5.6-luna" + +[[reasoning_options]] +type = "effort" +values = ["none", "low", "medium", "high", "xhigh", "max"] diff --git a/providers/byesu/models/gpt-5.6-sol.toml b/providers/byesu/models/gpt-5.6-sol.toml new file mode 100644 index 0000000000..40e60dd644 --- /dev/null +++ b/providers/byesu/models/gpt-5.6-sol.toml @@ -0,0 +1,5 @@ +base_model = "openai/gpt-5.6-sol" + +[[reasoning_options]] +type = "effort" +values = ["none", "low", "medium", "high", "xhigh", "max"] diff --git a/providers/byesu/models/gpt-5.6-terra.toml b/providers/byesu/models/gpt-5.6-terra.toml new file mode 100644 index 0000000000..0323353802 --- /dev/null +++ b/providers/byesu/models/gpt-5.6-terra.toml @@ -0,0 +1,5 @@ +base_model = "openai/gpt-5.6-terra" + +[[reasoning_options]] +type = "effort" +values = ["none", "low", "medium", "high", "xhigh", "max"] diff --git a/providers/byesu/models/grok-4.5.toml b/providers/byesu/models/grok-4.5.toml new file mode 100644 index 0000000000..ecabd9416c --- /dev/null +++ b/providers/byesu/models/grok-4.5.toml @@ -0,0 +1,5 @@ +base_model = "xai/grok-4.5" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high"] diff --git a/providers/byesu/provider.toml b/providers/byesu/provider.toml new file mode 100644 index 0000000000..0379068f47 --- /dev/null +++ b/providers/byesu/provider.toml @@ -0,0 +1,10 @@ +# Byesu is an AI API gateway offering official models with pay-as-you-go billing. +# OpenAI-compatible Chat Completions: POST https://byesu.com/v1/chat/completions. +# An Anthropic-native Messages API is also served from the same host: +# POST https://byesu.com/v1/messages (same Bearer token). +# https://docs.byesu.com/en/ (accessed 2026-07-11) +name = "Byesu" +env = ["BYESU_API_KEY"] +npm = "@ai-sdk/openai-compatible" +api = "https://byesu.com/v1" +doc = "https://docs.byesu.com/en/" From 09bdc8395d2dc10edc17de38e78344758571acad Mon Sep 17 00:00:00 2001 From: amdmsz Date: Sun, 12 Jul 2026 07:01:16 +0800 Subject: [PATCH 2/3] Use byesu's actual brand mark for the logo Co-Authored-By: Claude Opus 4.8 --- providers/byesu/logo.svg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/providers/byesu/logo.svg b/providers/byesu/logo.svg index e732f7c088..301abab436 100644 --- a/providers/byesu/logo.svg +++ b/providers/byesu/logo.svg @@ -1,4 +1,5 @@ - - - + + + + From 52ca4af0d8140ca8a776f82d73a1ae1a2a4a583a Mon Sep 17 00:00:00 2001 From: amdmsz Date: Sun, 19 Jul 2026 02:33:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20address=20review=20=E2=80=94=20add?= =?UTF-8?q?=20[cost],=20clear=20unverified=20reasoning=5Foptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add [cost] with byesu's actual per-1M-token pricing to all 8 model files. AGENTS.md marks cost as required and it is not inherited via base_model, so the entries previously resolved with no pricing at all. - Set reasoning_options = [] on every model. The gateway's forwarding of the upstream effort values is not documented, and per the audit guidance an option must not be declared merely because the upstream provider exposes it. This matches the comparable gateway provider `unorouter`. - Add structured_output to claude-opus-4-8 for consistency with claude-sonnet-5 (both pass through to the same upstream API). Co-Authored-By: Claude Opus 4.8 --- providers/byesu/models/claude-opus-4-8.toml | 8 +++++--- providers/byesu/models/claude-sonnet-5.toml | 7 ++++--- providers/byesu/models/gemini-3.1-pro.toml | 7 ++++--- providers/byesu/models/gpt-5.5.toml | 7 ++++--- providers/byesu/models/gpt-5.6-luna.toml | 7 ++++--- providers/byesu/models/gpt-5.6-sol.toml | 7 ++++--- providers/byesu/models/gpt-5.6-terra.toml | 7 ++++--- providers/byesu/models/grok-4.5.toml | 7 ++++--- 8 files changed, 33 insertions(+), 24 deletions(-) diff --git a/providers/byesu/models/claude-opus-4-8.toml b/providers/byesu/models/claude-opus-4-8.toml index 207a1835af..12df2dcd73 100644 --- a/providers/byesu/models/claude-opus-4-8.toml +++ b/providers/byesu/models/claude-opus-4-8.toml @@ -1,5 +1,7 @@ base_model = "anthropic/claude-opus-4-8" +structured_output = true +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["low", "medium", "high", "xhigh", "max"] +[cost] +input = 0.125 +output = 0.625 diff --git a/providers/byesu/models/claude-sonnet-5.toml b/providers/byesu/models/claude-sonnet-5.toml index af541012d8..57bec89a78 100644 --- a/providers/byesu/models/claude-sonnet-5.toml +++ b/providers/byesu/models/claude-sonnet-5.toml @@ -1,6 +1,7 @@ base_model = "anthropic/claude-sonnet-5" structured_output = true +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["low", "medium", "high", "xhigh", "max"] +[cost] +input = 0.05 +output = 0.25 diff --git a/providers/byesu/models/gemini-3.1-pro.toml b/providers/byesu/models/gemini-3.1-pro.toml index 19035b8918..70f538087b 100644 --- a/providers/byesu/models/gemini-3.1-pro.toml +++ b/providers/byesu/models/gemini-3.1-pro.toml @@ -2,7 +2,8 @@ # entry for this model is google/gemini-3.1-pro-preview. base_model = "google/gemini-3.1-pro-preview" name = "Gemini 3.1 Pro" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["low", "medium", "high"] +[cost] +input = 0.04 +output = 0.24 diff --git a/providers/byesu/models/gpt-5.5.toml b/providers/byesu/models/gpt-5.5.toml index 28509d7d42..2b7934101c 100644 --- a/providers/byesu/models/gpt-5.5.toml +++ b/providers/byesu/models/gpt-5.5.toml @@ -1,5 +1,6 @@ base_model = "openai/gpt-5.5" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["none", "low", "medium", "high", "xhigh"] +[cost] +input = 0.075 +output = 0.45 diff --git a/providers/byesu/models/gpt-5.6-luna.toml b/providers/byesu/models/gpt-5.6-luna.toml index 7320e33282..874f8b49fc 100644 --- a/providers/byesu/models/gpt-5.6-luna.toml +++ b/providers/byesu/models/gpt-5.6-luna.toml @@ -1,5 +1,6 @@ base_model = "openai/gpt-5.6-luna" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["none", "low", "medium", "high", "xhigh", "max"] +[cost] +input = 0.015 +output = 0.09 diff --git a/providers/byesu/models/gpt-5.6-sol.toml b/providers/byesu/models/gpt-5.6-sol.toml index 40e60dd644..7160e61c53 100644 --- a/providers/byesu/models/gpt-5.6-sol.toml +++ b/providers/byesu/models/gpt-5.6-sol.toml @@ -1,5 +1,6 @@ base_model = "openai/gpt-5.6-sol" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["none", "low", "medium", "high", "xhigh", "max"] +[cost] +input = 0.075 +output = 0.45 diff --git a/providers/byesu/models/gpt-5.6-terra.toml b/providers/byesu/models/gpt-5.6-terra.toml index 0323353802..eeb688bf97 100644 --- a/providers/byesu/models/gpt-5.6-terra.toml +++ b/providers/byesu/models/gpt-5.6-terra.toml @@ -1,5 +1,6 @@ base_model = "openai/gpt-5.6-terra" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["none", "low", "medium", "high", "xhigh", "max"] +[cost] +input = 0.0375 +output = 0.225 diff --git a/providers/byesu/models/grok-4.5.toml b/providers/byesu/models/grok-4.5.toml index ecabd9416c..1d35cd448b 100644 --- a/providers/byesu/models/grok-4.5.toml +++ b/providers/byesu/models/grok-4.5.toml @@ -1,5 +1,6 @@ base_model = "xai/grok-4.5" +reasoning_options = [] -[[reasoning_options]] -type = "effort" -values = ["low", "medium", "high"] +[cost] +input = 0.04 +output = 0.12