Skip to content

Commit 5d1a626

Browse files
adamleithpclaude
andcommitted
fix(canvas): drop duplicate model key after rebase
Rebase merged main's pinned DEFAULT_GATEWAY_MODEL with the branch's gateway-resolved model into one createTask literal; the resolved model wins. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent b051f44 commit 5d1a626

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/ui/src/features/canvas/hooks/useGenerateContext.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DEFAULT_GATEWAY_MODEL } from "@posthog/agent/gateway-models";
21
import type { PostHogAPIClient } from "@posthog/api-client/posthog-client";
32
import {
43
REPORT_MODEL_RESOLVER,
@@ -140,11 +139,6 @@ export function useGenerateContext() {
140139
// before publishing, so the user co-designs CONTEXT.md.
141140
executionMode: "plan",
142141
allowNoRepo: true,
143-
// A cloud run pairs a runtime adapter with a model, and the API
144-
// rejects one without the other. Since this flow lets the agent pick
145-
// its repo at runtime, it never surfaces a model picker, so pin the
146-
// default gateway model here to match the adapter the saga defaults to.
147-
model: DEFAULT_GATEWAY_MODEL,
148142
},
149143
(output) => invalidateTasks(output.task),
150144
);

0 commit comments

Comments
 (0)