refactor(presets): align CCSub to end of partner block across apps

Move the CCSub preset to sit right after DouBaoSeed, at the end of the
partner block and before the first non-partner provider, so its position
is consistent across all six apps:

- Codex / OpenCode: moved up from the 2nd slot (between Shengsuanyun and
  the next partner) to the block tail
- OpenClaw / Hermes: moved up from the aggregator section to the block tail
- Claude / Claude Desktop: already at the block tail

Also add the missing CHANGELOG entry for the CCSub preset, and drop the
provider preset order test that enforced a now-unneeded ordering invariant.
This commit is contained in:
Jason
2026-06-08 23:07:50 +08:00
parent fa17194d84
commit 5beb63e67d
8 changed files with 197 additions and 281 deletions
+50 -50
View File
@@ -238,6 +238,56 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
},
},
},
{
name: "CCSub",
websiteUrl: "https://www.ccsub.net",
apiKeyUrl: "https://www.ccsub.net/register?ref=Y6Z8DXEA",
settingsConfig: {
name: "ccsub",
base_url: "https://www.ccsub.net/v1",
api_key: "",
api_mode: "chat_completions",
models: [
{
id: "claude-opus-4-8",
name: "Claude Opus 4.8",
context_length: 1000000,
},
{
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6",
context_length: 1000000,
},
{
id: "gpt-5.5",
name: "GPT-5.5",
context_length: 400000,
},
{
id: "o3",
name: "o3",
context_length: 200000,
},
{
id: "gemini-3.1-pro",
name: "Gemini 3.1 Pro",
context_length: 1000000,
},
{
id: "deepseek-v4-flash",
name: "DeepSeek V4 Flash",
context_length: 1000000,
},
],
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "ccsub",
icon: "ccsub",
suggestedDefaults: {
model: { default: "claude-opus-4-8", provider: "ccsub" },
},
},
{
name: "OpenRouter",
nameKey: "providerForm.presets.openrouter",
@@ -351,56 +401,6 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
},
},
},
{
name: "CCSub",
websiteUrl: "https://www.ccsub.net",
apiKeyUrl: "https://www.ccsub.net/register?ref=Y6Z8DXEA",
settingsConfig: {
name: "ccsub",
base_url: "https://www.ccsub.net/v1",
api_key: "",
api_mode: "chat_completions",
models: [
{
id: "claude-opus-4-8",
name: "Claude Opus 4.8",
context_length: 1000000,
},
{
id: "claude-sonnet-4-6",
name: "Claude Sonnet 4.6",
context_length: 1000000,
},
{
id: "gpt-5.5",
name: "GPT-5.5",
context_length: 400000,
},
{
id: "o3",
name: "o3",
context_length: 200000,
},
{
id: "gemini-3.1-pro",
name: "Gemini 3.1 Pro",
context_length: 1000000,
},
{
id: "deepseek-v4-flash",
name: "DeepSeek V4 Flash",
context_length: 1000000,
},
],
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "ccsub",
icon: "ccsub",
suggestedDefaults: {
model: { default: "claude-opus-4-8", provider: "ccsub" },
},
},
{
name: "Nous Research",
websiteUrl: "https://nousresearch.com",