Skip to content

Commit 3e25841

Browse files
authored
🤖 fix: use JSON mode for workspace title generation (#870)
_Generated with `mux`_ Use `mode: "json"` for workspace title generation instead of the default tool mode, avoiding `tool_choice: any` in the API request.
1 parent 35ad55b commit 3e25841

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)