Add code-supernova stealth model (#6327)
* Update announcement banner * Fix banner buttons --------- Co-authored-by: pashpashpash <nik@cline.bot>
This commit is contained in:
1 parent
07b49baa2a
commit
d07648746a
7 files changed
+71
-46
No files matched your search
@@ -6,7 +6,7 @@ import axios from "axios"
|
||||
import cloneDeep from "clone-deep"
|
||||
import fs from "fs/promises"
|
||||
import path from "path"
|
||||
import { CLAUDE_SONNET_4_1M_TIERS, clineMicrowaveAlphaModelInfo, openRouterClaudeSonnet41mModelId } from "@/shared/api"
|
||||
import { CLAUDE_SONNET_4_1M_TIERS, clineCodeSupernovaModelInfo, openRouterClaudeSonnet41mModelId } from "@/shared/api"
|
||||
import { Controller } from ".."
|
||||
|
||||
type OpenRouterSupportedParams =
|
||||
@@ -222,20 +222,20 @@ export async function refreshOpenRouterModels(
|
||||
}
|
||||
}
|
||||
|
||||
// Add hardcoded cline/sonic model
|
||||
models["cline/sonic"] = OpenRouterModelInfo.create({
|
||||
maxTokens: clineMicrowaveAlphaModelInfo.maxTokens ?? 0,
|
||||
contextWindow: clineMicrowaveAlphaModelInfo.contextWindow ?? 0,
|
||||
supportsImages: clineMicrowaveAlphaModelInfo.supportsImages ?? false,
|
||||
supportsPromptCache: clineMicrowaveAlphaModelInfo.supportsPromptCache ?? false,
|
||||
inputPrice: clineMicrowaveAlphaModelInfo.inputPrice ?? 0,
|
||||
outputPrice: clineMicrowaveAlphaModelInfo.outputPrice ?? 0,
|
||||
cacheWritesPrice: clineMicrowaveAlphaModelInfo.cacheWritesPrice ?? 0,
|
||||
cacheReadsPrice: clineMicrowaveAlphaModelInfo.cacheReadsPrice ?? 0,
|
||||
description: clineMicrowaveAlphaModelInfo.description ?? "",
|
||||
thinkingConfig: clineMicrowaveAlphaModelInfo.thinkingConfig ?? undefined,
|
||||
supportsGlobalEndpoint: clineMicrowaveAlphaModelInfo.supportsGlobalEndpoint ?? undefined,
|
||||
tiers: clineMicrowaveAlphaModelInfo.tiers ?? [],
|
||||
// Add hardcoded stealth model
|
||||
models["cline/code-supernova"] = OpenRouterModelInfo.create({
|
||||
maxTokens: clineCodeSupernovaModelInfo.maxTokens ?? 0,
|
||||
contextWindow: clineCodeSupernovaModelInfo.contextWindow ?? 0,
|
||||
supportsImages: clineCodeSupernovaModelInfo.supportsImages ?? false,
|
||||
supportsPromptCache: clineCodeSupernovaModelInfo.supportsPromptCache ?? false,
|
||||
inputPrice: clineCodeSupernovaModelInfo.inputPrice ?? 0,
|
||||
outputPrice: clineCodeSupernovaModelInfo.outputPrice ?? 0,
|
||||
cacheWritesPrice: clineCodeSupernovaModelInfo.cacheWritesPrice ?? 0,
|
||||
cacheReadsPrice: clineCodeSupernovaModelInfo.cacheReadsPrice ?? 0,
|
||||
description: clineCodeSupernovaModelInfo.description ?? "",
|
||||
thinkingConfig: clineCodeSupernovaModelInfo.thinkingConfig ?? undefined,
|
||||
supportsGlobalEndpoint: clineCodeSupernovaModelInfo.supportsGlobalEndpoint ?? undefined,
|
||||
tiers: clineCodeSupernovaModelInfo.tiers ?? [],
|
||||
})
|
||||
} else {
|
||||
console.error("Invalid response from OpenRouter API")
|
||||
|
||||
Reference in new issue
Block a user