From ac7e35af4eb9e15539c98680f005c47bdcda241a Mon Sep 17 00:00:00 2001 From: Lyda <1829913225@qq.com> Date: Wed, 15 Apr 2026 17:32:18 +0800 Subject: [PATCH 1/2] feat(302ai): supplement commonly missing models --- .../302ai/models/MiniMax-M2.7-highspeed.toml | 20 ++++++++++++++++++ providers/302ai/models/MiniMax-M2.7.toml | 20 ++++++++++++++++++ .../models/claude-3-5-haiku-20241022.toml | 21 +++++++++++++++++++ .../302ai/models/claude-3-5-haiku-latest.toml | 21 +++++++++++++++++++ .../models/claude-haiku-4-5-20251001.toml | 4 ++-- providers/302ai/models/claude-haiku-4-5.toml | 21 +++++++++++++++++++ .../302ai/models/claude-opus-4-20250514.toml | 21 +++++++++++++++++++ .../models/claude-opus-4-5-20251101.toml | 4 ++-- providers/302ai/models/claude-opus-4-5.toml | 21 +++++++++++++++++++ .../models/claude-opus-4-6-thinking.toml | 21 +++++++++++++++++++ providers/302ai/models/claude-opus-4-6.toml | 21 +++++++++++++++++++ .../models/claude-sonnet-4-20250514.toml | 21 +++++++++++++++++++ .../claude-sonnet-4-5-20250929-thinking.toml | 2 +- .../models/claude-sonnet-4-5-20250929.toml | 6 +++--- providers/302ai/models/claude-sonnet-4-5.toml | 21 +++++++++++++++++++ .../models/claude-sonnet-4-6-thinking.toml | 21 +++++++++++++++++++ providers/302ai/models/claude-sonnet-4-6.toml | 21 +++++++++++++++++++ .../gemini-3.1-flash-image-preview.toml | 21 +++++++++++++++++++ providers/302ai/models/glm-4.5-air.toml | 21 +++++++++++++++++++ providers/302ai/models/glm-4.5-airx.toml | 21 +++++++++++++++++++ providers/302ai/models/glm-4.5-x.toml | 21 +++++++++++++++++++ providers/302ai/models/glm-4.5v.toml | 4 ++-- providers/302ai/models/glm-4.6.toml | 2 +- providers/302ai/models/glm-4.7-flashx.toml | 21 +++++++++++++++++++ providers/302ai/models/glm-4.7.toml | 2 +- providers/302ai/models/glm-5-turbo.toml | 20 ++++++++++++++++++ providers/302ai/models/glm-5.1.toml | 20 ++++++++++++++++++ providers/302ai/models/glm-5.toml | 20 ++++++++++++++++++ providers/302ai/models/glm-5v-turbo.toml | 20 ++++++++++++++++++ providers/302ai/models/glm-for-coding.toml | 20 ++++++++++++++++++ .../302ai/models/gpt-5.4-mini-2026-03-17.toml | 21 +++++++++++++++++++ providers/302ai/models/gpt-5.4-mini.toml | 21 +++++++++++++++++++ .../302ai/models/gpt-5.4-nano-2026-03-17.toml | 21 +++++++++++++++++++ providers/302ai/models/gpt-5.4-nano.toml | 21 +++++++++++++++++++ .../grok-4.20-beta-0309-non-reasoning.toml | 20 ++++++++++++++++++ .../models/grok-4.20-beta-0309-reasoning.toml | 20 ++++++++++++++++++ .../grok-4.20-multi-agent-beta-0309.toml | 20 ++++++++++++++++++ 37 files changed, 632 insertions(+), 12 deletions(-) create mode 100644 providers/302ai/models/MiniMax-M2.7-highspeed.toml create mode 100644 providers/302ai/models/MiniMax-M2.7.toml create mode 100644 providers/302ai/models/claude-3-5-haiku-20241022.toml create mode 100644 providers/302ai/models/claude-3-5-haiku-latest.toml create mode 100644 providers/302ai/models/claude-haiku-4-5.toml create mode 100644 providers/302ai/models/claude-opus-4-20250514.toml create mode 100644 providers/302ai/models/claude-opus-4-5.toml create mode 100644 providers/302ai/models/claude-opus-4-6-thinking.toml create mode 100644 providers/302ai/models/claude-opus-4-6.toml create mode 100644 providers/302ai/models/claude-sonnet-4-20250514.toml create mode 100644 providers/302ai/models/claude-sonnet-4-5.toml create mode 100644 providers/302ai/models/claude-sonnet-4-6-thinking.toml create mode 100644 providers/302ai/models/claude-sonnet-4-6.toml create mode 100644 providers/302ai/models/gemini-3.1-flash-image-preview.toml create mode 100644 providers/302ai/models/glm-4.5-air.toml create mode 100644 providers/302ai/models/glm-4.5-airx.toml create mode 100644 providers/302ai/models/glm-4.5-x.toml create mode 100644 providers/302ai/models/glm-4.7-flashx.toml create mode 100644 providers/302ai/models/glm-5-turbo.toml create mode 100644 providers/302ai/models/glm-5.1.toml create mode 100644 providers/302ai/models/glm-5.toml create mode 100644 providers/302ai/models/glm-5v-turbo.toml create mode 100644 providers/302ai/models/glm-for-coding.toml create mode 100644 providers/302ai/models/gpt-5.4-mini-2026-03-17.toml create mode 100644 providers/302ai/models/gpt-5.4-mini.toml create mode 100644 providers/302ai/models/gpt-5.4-nano-2026-03-17.toml create mode 100644 providers/302ai/models/gpt-5.4-nano.toml create mode 100644 providers/302ai/models/grok-4.20-beta-0309-non-reasoning.toml create mode 100644 providers/302ai/models/grok-4.20-beta-0309-reasoning.toml create mode 100644 providers/302ai/models/grok-4.20-multi-agent-beta-0309.toml diff --git a/providers/302ai/models/MiniMax-M2.7-highspeed.toml b/providers/302ai/models/MiniMax-M2.7-highspeed.toml new file mode 100644 index 000000000..5b40cef29 --- /dev/null +++ b/providers/302ai/models/MiniMax-M2.7-highspeed.toml @@ -0,0 +1,20 @@ +name = "MiniMax-M2.7-highspeed" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.600 +output = 4.800 + +[limit] +context = 204_800 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/MiniMax-M2.7.toml b/providers/302ai/models/MiniMax-M2.7.toml new file mode 100644 index 000000000..3be25b7c5 --- /dev/null +++ b/providers/302ai/models/MiniMax-M2.7.toml @@ -0,0 +1,20 @@ +name = "MiniMax-M2.7" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.300 +output = 1.200 + +[limit] +context = 204_800 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/claude-3-5-haiku-20241022.toml b/providers/302ai/models/claude-3-5-haiku-20241022.toml new file mode 100644 index 000000000..5206502c1 --- /dev/null +++ b/providers/302ai/models/claude-3-5-haiku-20241022.toml @@ -0,0 +1,21 @@ +name = "claude-3-5-haiku-20241022" +release_date = "2024-10-22" +last_updated = "2024-10-22" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2024-07" + +[cost] +input = 0.800 +output = 4.000 + +[limit] +context = 200_000 +output = 8_192 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-3-5-haiku-latest.toml b/providers/302ai/models/claude-3-5-haiku-latest.toml new file mode 100644 index 000000000..91861d8c9 --- /dev/null +++ b/providers/302ai/models/claude-3-5-haiku-latest.toml @@ -0,0 +1,21 @@ +name = "claude-3-5-haiku-latest" +release_date = "2024-10-22" +last_updated = "2024-10-22" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2024-07" + +[cost] +input = 0.800 +output = 4.000 + +[limit] +context = 200_000 +output = 8_192 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-haiku-4-5-20251001.toml b/providers/302ai/models/claude-haiku-4-5-20251001.toml index acf6f9379..6cbf0286c 100644 --- a/providers/302ai/models/claude-haiku-4-5-20251001.toml +++ b/providers/302ai/models/claude-haiku-4-5-20251001.toml @@ -2,7 +2,7 @@ name = "claude-haiku-4-5-20251001" release_date = "2025-10-16" last_updated = "2025-10-16" attachment = true -reasoning = false +reasoning = true temperature = true tool_call = true open_weights = false @@ -17,5 +17,5 @@ context = 200_000 output = 64_000 [modalities] -input = ["text", "image"] +input = ["text", "image", "pdf"] output = ["text"] diff --git a/providers/302ai/models/claude-haiku-4-5.toml b/providers/302ai/models/claude-haiku-4-5.toml new file mode 100644 index 000000000..df7f990c1 --- /dev/null +++ b/providers/302ai/models/claude-haiku-4-5.toml @@ -0,0 +1,21 @@ +name = "claude-haiku-4-5" +release_date = "2025-10-16" +last_updated = "2025-10-16" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-02" + +[cost] +input = 1.000 +output = 5.000 + +[limit] +context = 200_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-opus-4-20250514.toml b/providers/302ai/models/claude-opus-4-20250514.toml new file mode 100644 index 000000000..87cf5e01b --- /dev/null +++ b/providers/302ai/models/claude-opus-4-20250514.toml @@ -0,0 +1,21 @@ +name = "claude-opus-4-20250514" +release_date = "2025-05-22" +last_updated = "2025-05-22" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-03" + +[cost] +input = 15.000 +output = 75.000 + +[limit] +context = 200_000 +output = 32_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-opus-4-5-20251101.toml b/providers/302ai/models/claude-opus-4-5-20251101.toml index 3b7ae8b80..cdca820e1 100644 --- a/providers/302ai/models/claude-opus-4-5-20251101.toml +++ b/providers/302ai/models/claude-opus-4-5-20251101.toml @@ -2,7 +2,7 @@ name = "claude-opus-4-5-20251101" release_date = "2025-11-25" last_updated = "2025-11-25" attachment = true -reasoning = false +reasoning = true temperature = true tool_call = true open_weights = false @@ -17,5 +17,5 @@ context = 200_000 output = 64_000 [modalities] -input = ["text", "image"] +input = ["text", "image", "pdf"] output = ["text"] diff --git a/providers/302ai/models/claude-opus-4-5.toml b/providers/302ai/models/claude-opus-4-5.toml new file mode 100644 index 000000000..c23f6ef37 --- /dev/null +++ b/providers/302ai/models/claude-opus-4-5.toml @@ -0,0 +1,21 @@ +name = "claude-opus-4-5" +release_date = "2025-11-25" +last_updated = "2025-11-25" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-03" + +[cost] +input = 5.000 +output = 25.000 + +[limit] +context = 200_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-opus-4-6-thinking.toml b/providers/302ai/models/claude-opus-4-6-thinking.toml new file mode 100644 index 000000000..2588d11d5 --- /dev/null +++ b/providers/302ai/models/claude-opus-4-6-thinking.toml @@ -0,0 +1,21 @@ +name = "claude-opus-4-6-thinking" +release_date = "2026-02-06" +last_updated = "2026-03-13" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-05" + +[cost] +input = 5.000 +output = 25.000 + +[limit] +context = 1_000_000 +output = 128_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-opus-4-6.toml b/providers/302ai/models/claude-opus-4-6.toml new file mode 100644 index 000000000..3d04133ae --- /dev/null +++ b/providers/302ai/models/claude-opus-4-6.toml @@ -0,0 +1,21 @@ +name = "claude-opus-4-6" +release_date = "2026-02-06" +last_updated = "2026-03-13" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-05" + +[cost] +input = 5.000 +output = 25.000 + +[limit] +context = 1_000_000 +output = 128_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-20250514.toml b/providers/302ai/models/claude-sonnet-4-20250514.toml new file mode 100644 index 000000000..23f128c34 --- /dev/null +++ b/providers/302ai/models/claude-sonnet-4-20250514.toml @@ -0,0 +1,21 @@ +name = "claude-sonnet-4-20250514" +release_date = "2025-05-22" +last_updated = "2025-05-22" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-03" + +[cost] +input = 3.000 +output = 15.000 + +[limit] +context = 200_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-5-20250929-thinking.toml b/providers/302ai/models/claude-sonnet-4-5-20250929-thinking.toml index a4c367e0b..31dadc7c7 100644 --- a/providers/302ai/models/claude-sonnet-4-5-20250929-thinking.toml +++ b/providers/302ai/models/claude-sonnet-4-5-20250929-thinking.toml @@ -17,5 +17,5 @@ context = 200_000 output = 64_000 [modalities] -input = ["text", "image"] +input = ["text", "image", "pdf"] output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-5-20250929.toml b/providers/302ai/models/claude-sonnet-4-5-20250929.toml index dd59d0f14..028547ae0 100644 --- a/providers/302ai/models/claude-sonnet-4-5-20250929.toml +++ b/providers/302ai/models/claude-sonnet-4-5-20250929.toml @@ -1,6 +1,6 @@ name = "claude-sonnet-4-5-20250929" -release_date = "2025-09-29" -last_updated = "2025-09-29" +release_date = "2025-09-30" +last_updated = "2025-09-30" attachment = true reasoning = false temperature = true @@ -17,5 +17,5 @@ context = 200_000 output = 64_000 [modalities] -input = ["text", "image"] +input = ["text", "image", "pdf"] output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-5.toml b/providers/302ai/models/claude-sonnet-4-5.toml new file mode 100644 index 000000000..e12a03eaa --- /dev/null +++ b/providers/302ai/models/claude-sonnet-4-5.toml @@ -0,0 +1,21 @@ +name = "claude-sonnet-4-5" +release_date = "2025-09-30" +last_updated = "2025-09-30" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-07" + +[cost] +input = 3.000 +output = 15.000 + +[limit] +context = 200_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-6-thinking.toml b/providers/302ai/models/claude-sonnet-4-6-thinking.toml new file mode 100644 index 000000000..b0c603189 --- /dev/null +++ b/providers/302ai/models/claude-sonnet-4-6-thinking.toml @@ -0,0 +1,21 @@ +name = "claude-sonnet-4-6-thinking" +release_date = "2026-02-18" +last_updated = "2026-03-13" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 3.000 +output = 15.000 + +[limit] +context = 1_000_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/claude-sonnet-4-6.toml b/providers/302ai/models/claude-sonnet-4-6.toml new file mode 100644 index 000000000..7dbd140ba --- /dev/null +++ b/providers/302ai/models/claude-sonnet-4-6.toml @@ -0,0 +1,21 @@ +name = "claude-sonnet-4-6" +release_date = "2026-02-18" +last_updated = "2026-03-13" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 3.000 +output = 15.000 + +[limit] +context = 1_000_000 +output = 64_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/gemini-3.1-flash-image-preview.toml b/providers/302ai/models/gemini-3.1-flash-image-preview.toml new file mode 100644 index 000000000..fbbc46966 --- /dev/null +++ b/providers/302ai/models/gemini-3.1-flash-image-preview.toml @@ -0,0 +1,21 @@ +name = "gemini-3.1-flash-image-preview" +release_date = "2026-02-27" +last_updated = "2026-02-27" +attachment = true +reasoning = false +temperature = true +tool_call = false +open_weights = false +knowledge = "2025-01" + +[cost] +input = 0.500 +output = 60.000 + +[limit] +context = 131_072 +output = 32_768 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text", "image"] diff --git a/providers/302ai/models/glm-4.5-air.toml b/providers/302ai/models/glm-4.5-air.toml new file mode 100644 index 000000000..adaed156f --- /dev/null +++ b/providers/302ai/models/glm-4.5-air.toml @@ -0,0 +1,21 @@ +name = "glm-4.5-air" +release_date = "2025-07-29" +last_updated = "2025-07-29" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-04" + +[cost] +input = 0.1143 +output = 0.286 + +[limit] +context = 128_000 +output = 98_304 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-4.5-airx.toml b/providers/302ai/models/glm-4.5-airx.toml new file mode 100644 index 000000000..35bf56a68 --- /dev/null +++ b/providers/302ai/models/glm-4.5-airx.toml @@ -0,0 +1,21 @@ +name = "glm-4.5-airx" +release_date = "2025-07-29" +last_updated = "2025-07-29" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-04" + +[cost] +input = 0.572 +output = 1.714 + +[limit] +context = 128_000 +output = 16_384 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-4.5-x.toml b/providers/302ai/models/glm-4.5-x.toml new file mode 100644 index 000000000..b7da7b32c --- /dev/null +++ b/providers/302ai/models/glm-4.5-x.toml @@ -0,0 +1,21 @@ +name = "glm-4.5-x" +release_date = "2025-07-29" +last_updated = "2025-07-29" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-04" + +[cost] +input = 1.143 +output = 2.290 + +[limit] +context = 128_000 +output = 16_384 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-4.5v.toml b/providers/302ai/models/glm-4.5v.toml index 083c576bd..adc54bcb4 100644 --- a/providers/302ai/models/glm-4.5v.toml +++ b/providers/302ai/models/glm-4.5v.toml @@ -1,6 +1,6 @@ name = "GLM-4.5V" -release_date = "2025-07-29" -last_updated = "2025-07-29" +release_date = "2025-08-12" +last_updated = "2025-08-12" attachment = true reasoning = false temperature = true diff --git a/providers/302ai/models/glm-4.6.toml b/providers/302ai/models/glm-4.6.toml index 497b20500..4537b5708 100644 --- a/providers/302ai/models/glm-4.6.toml +++ b/providers/302ai/models/glm-4.6.toml @@ -2,7 +2,7 @@ name = "glm-4.6" release_date = "2025-09-30" last_updated = "2025-09-30" attachment = false -reasoning = false +reasoning = true temperature = true tool_call = true open_weights = false diff --git a/providers/302ai/models/glm-4.7-flashx.toml b/providers/302ai/models/glm-4.7-flashx.toml new file mode 100644 index 000000000..e1c396ae5 --- /dev/null +++ b/providers/302ai/models/glm-4.7-flashx.toml @@ -0,0 +1,21 @@ +name = "glm-4.7-flashx" +release_date = "2026-01-20" +last_updated = "2026-01-20" +attachment = false +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-04" + +[cost] +input = 0.0715 +output = 0.429 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-4.7.toml b/providers/302ai/models/glm-4.7.toml index 9f0b02cd1..aa2fe0d7e 100644 --- a/providers/302ai/models/glm-4.7.toml +++ b/providers/302ai/models/glm-4.7.toml @@ -2,7 +2,7 @@ name = "glm-4.7" release_date = "2025-12-22" last_updated = "2025-12-22" attachment = false -reasoning = false +reasoning = true temperature = true tool_call = true open_weights = false diff --git a/providers/302ai/models/glm-5-turbo.toml b/providers/302ai/models/glm-5-turbo.toml new file mode 100644 index 000000000..8f26fd178 --- /dev/null +++ b/providers/302ai/models/glm-5-turbo.toml @@ -0,0 +1,20 @@ +name = "glm-5-turbo" +release_date = "2026-03-16" +last_updated = "2026-03-16" +attachment = false +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.720 +output = 3.200 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-5.1.toml b/providers/302ai/models/glm-5.1.toml new file mode 100644 index 000000000..4e2b94d20 --- /dev/null +++ b/providers/302ai/models/glm-5.1.toml @@ -0,0 +1,20 @@ +name = "glm-5.1" +release_date = "2026-04-10" +last_updated = "2026-04-10" +attachment = false +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.860 +output = 3.500 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-5.toml b/providers/302ai/models/glm-5.toml new file mode 100644 index 000000000..633036236 --- /dev/null +++ b/providers/302ai/models/glm-5.toml @@ -0,0 +1,20 @@ +name = "glm-5" +release_date = "2026-02-12" +last_updated = "2026-02-12" +attachment = false +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.600 +output = 2.600 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/glm-5v-turbo.toml b/providers/302ai/models/glm-5v-turbo.toml new file mode 100644 index 000000000..8e489daff --- /dev/null +++ b/providers/302ai/models/glm-5v-turbo.toml @@ -0,0 +1,20 @@ +name = "glm-5v-turbo" +release_date = "2026-04-02" +last_updated = "2026-04-02" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.720 +output = 3.200 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text", "image", "video", "audio", "pdf"] +output = ["text"] diff --git a/providers/302ai/models/glm-for-coding.toml b/providers/302ai/models/glm-for-coding.toml new file mode 100644 index 000000000..9e43f1559 --- /dev/null +++ b/providers/302ai/models/glm-for-coding.toml @@ -0,0 +1,20 @@ +name = "glm-for-coding" +release_date = "2025-09-30" +last_updated = "2025-09-30" +attachment = false +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 0.086 +output = 0.343 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/302ai/models/gpt-5.4-mini-2026-03-17.toml b/providers/302ai/models/gpt-5.4-mini-2026-03-17.toml new file mode 100644 index 000000000..e3041fa8e --- /dev/null +++ b/providers/302ai/models/gpt-5.4-mini-2026-03-17.toml @@ -0,0 +1,21 @@ +name = "gpt-5.4-mini-2026-03-17" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 0.750 +output = 4.500 + +[limit] +context = 400_000 +output = 128_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/gpt-5.4-mini.toml b/providers/302ai/models/gpt-5.4-mini.toml new file mode 100644 index 000000000..8a17f21ab --- /dev/null +++ b/providers/302ai/models/gpt-5.4-mini.toml @@ -0,0 +1,21 @@ +name = "gpt-5.4-mini" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 0.750 +output = 4.500 + +[limit] +context = 400_000 +output = 128_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/gpt-5.4-nano-2026-03-17.toml b/providers/302ai/models/gpt-5.4-nano-2026-03-17.toml new file mode 100644 index 000000000..f4c912236 --- /dev/null +++ b/providers/302ai/models/gpt-5.4-nano-2026-03-17.toml @@ -0,0 +1,21 @@ +name = "gpt-5.4-nano-2026-03-17" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 0.200 +output = 1.250 + +[limit] +context = 400_000 +output = 128_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/gpt-5.4-nano.toml b/providers/302ai/models/gpt-5.4-nano.toml new file mode 100644 index 000000000..2e7f74f80 --- /dev/null +++ b/providers/302ai/models/gpt-5.4-nano.toml @@ -0,0 +1,21 @@ +name = "gpt-5.4-nano" +release_date = "2026-03-19" +last_updated = "2026-03-19" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-08" + +[cost] +input = 0.200 +output = 1.250 + +[limit] +context = 400_000 +output = 128_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/grok-4.20-beta-0309-non-reasoning.toml b/providers/302ai/models/grok-4.20-beta-0309-non-reasoning.toml new file mode 100644 index 000000000..2f82f3563 --- /dev/null +++ b/providers/302ai/models/grok-4.20-beta-0309-non-reasoning.toml @@ -0,0 +1,20 @@ +name = "grok-4.20-beta-0309-non-reasoning" +release_date = "2026-03-16" +last_updated = "2026-03-16" +attachment = true +reasoning = false +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 2.000 +output = 6.000 + +[limit] +context = 2_000_000 +output = 30_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/grok-4.20-beta-0309-reasoning.toml b/providers/302ai/models/grok-4.20-beta-0309-reasoning.toml new file mode 100644 index 000000000..1edb66eba --- /dev/null +++ b/providers/302ai/models/grok-4.20-beta-0309-reasoning.toml @@ -0,0 +1,20 @@ +name = "grok-4.20-beta-0309-reasoning" +release_date = "2026-03-16" +last_updated = "2026-03-16" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 2.000 +output = 6.000 + +[limit] +context = 2_000_000 +output = 30_000 + +[modalities] +input = ["text", "image"] +output = ["text"] diff --git a/providers/302ai/models/grok-4.20-multi-agent-beta-0309.toml b/providers/302ai/models/grok-4.20-multi-agent-beta-0309.toml new file mode 100644 index 000000000..c4c2ac3da --- /dev/null +++ b/providers/302ai/models/grok-4.20-multi-agent-beta-0309.toml @@ -0,0 +1,20 @@ +name = "grok-4.20-multi-agent-beta-0309" +release_date = "2026-03-16" +last_updated = "2026-03-16" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false + +[cost] +input = 2.000 +output = 6.000 + +[limit] +context = 2_000_000 +output = 30_000 + +[modalities] +input = ["text", "image"] +output = ["text"] From 435ec1df7bc58d6d9ec9051924e3747dfa73c06e Mon Sep 17 00:00:00 2001 From: Lyda <1829913225@qq.com> Date: Mon, 20 Apr 2026 11:14:27 +0800 Subject: [PATCH 2/2] feat(302ai): add claude-opus-4-7 model --- providers/302ai/models/claude-opus-4-7.toml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 providers/302ai/models/claude-opus-4-7.toml diff --git a/providers/302ai/models/claude-opus-4-7.toml b/providers/302ai/models/claude-opus-4-7.toml new file mode 100644 index 000000000..e2942f225 --- /dev/null +++ b/providers/302ai/models/claude-opus-4-7.toml @@ -0,0 +1,29 @@ +name = "claude-opus-4-7" +release_date = "2026-04-17" +last_updated = "2026-04-17" +attachment = true +reasoning = true +temperature = true +tool_call = true +open_weights = false +knowledge = "2025-05" + +[cost] +input = 5.000 +output = 25.000 +cache_read = 0.500 +cache_write = 6.250 + +[cost.context_over_200k] +input = 10.000 +output = 37.500 +cache_read = 1.000 +cache_write = 12.500 + +[limit] +context = 200_000 +output = 128_000 + +[modalities] +input = ["text", "image", "pdf"] +output = ["text"]