Skip to content

Commit 18ae22d

Browse files
committed
🤖 fix: use JSON mode for workspace title generation
Switch generateObject from tool mode to JSON mode for workspace title generation. This avoids sending tool_choice: any for a simple structured output task.
1 parent 30b1c08 commit 18ae22d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node/services/workspaceTitleGenerator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export async function generateWorkspaceName(
3434
const result = await generateObject({
3535
model: modelResult.data,
3636
schema: workspaceNameSchema,
37+
mode: "json",
3738
prompt: `Generate a git-safe branch/workspace name for this development task:\n\n"${message}"\n\nRequirements:\n- Git-safe identifier (e.g., "automatic-title-generation")\n- Lowercase, hyphens only, no spaces\n- Concise (2-5 words) and descriptive of the task`,
3839
});
3940

0 commit comments

Comments
 (0)