Skip to content

Commit c7aa564

Browse files
committed
fix(agent): Codebase Auto reports provider as 'codebase', not 'groq'
The synthesized Codebase Auto model is cloned from groq's llama template (pi-ai needs a known provider as a starting point), but the clone forgot to override the provider field — so the status bar and /model showed 'groq/MiniMax-M2.7', misleading users into thinking their in-house route was hitting Groq. The wire call was always correct (request body sends model.id only); only the display lied.
1 parent 4345b2d commit c7aa564

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/agent/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ function buildProxiedConfig(env: NodeJS.ProcessEnv, accessToken: string): Resolv
167167
id: "MiniMax-M2.7",
168168
name: "Codebase Auto",
169169
baseUrl: proxyBase,
170+
// Override provider so the status bar and /model don't lie about
171+
// where this is served from. pi-ai uses `provider` mainly for
172+
// display + a few baseUrl heuristics; the request body sends
173+
// `model.id` only, so this cast is safe.
174+
provider: "codebase" as Model<string>["provider"],
170175
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
171176
};
172177
return { model, apiKey: accessToken, source: "proxy" };

0 commit comments

Comments
 (0)