mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
fix: revert OpenClaw default model to openrouter/auto (#2509)
OpenClaw requires the openrouter/ provider prefix for model IDs. The previous default (moonshotai/kimi-k2.5) was missing the prefix, causing "Unknown model" warnings. Reverted to openrouter/openrouter/auto which uses OpenRouter's auto-router to pick the best model per prompt. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
129f72d8e1
commit
553cbad7bf
3 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@
|
|||
"interactive_prompts": {
|
||||
"model_id": {
|
||||
"prompt": "Enter model ID",
|
||||
"default": "moonshotai/kimi-k2.5"
|
||||
"default": "openrouter/openrouter/auto"
|
||||
}
|
||||
},
|
||||
"icon": "https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/assets/agents/openclaw.png",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.16.14",
|
||||
"version": "0.16.15",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
|
|||
name: "OpenClaw",
|
||||
cloudInitTier: "full" satisfies AgentConfig["cloudInitTier"],
|
||||
preProvision: detectGithubAuth,
|
||||
modelDefault: "moonshotai/kimi-k2.5",
|
||||
modelDefault: "openrouter/openrouter/auto",
|
||||
install: async () => {
|
||||
await installAgent(
|
||||
runner,
|
||||
|
|
@ -637,7 +637,7 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
|
|||
"ANTHROPIC_BASE_URL=https://openrouter.ai/api",
|
||||
],
|
||||
configure: (apiKey: string, modelId?: string, enabledSteps?: Set<string>) =>
|
||||
setupOpenclawConfig(runner, apiKey, modelId || "moonshotai/kimi-k2.5", dashboardToken, enabledSteps),
|
||||
setupOpenclawConfig(runner, apiKey, modelId || "openrouter/openrouter/auto", dashboardToken, enabledSteps),
|
||||
preLaunch: () => startGateway(runner),
|
||||
preLaunchMsg: "Your web dashboard will open automatically. If it doesn't, check the terminal for the URL.",
|
||||
launchCmd: () =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue