Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shiny-berries-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/codemode": patch
---

prepend custom prompt to default assistant text
3 changes: 2 additions & 1 deletion packages/codemode/src/ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export async function experimental_codemode(options: {
tools: ToolSet;
}> {
const generatedTypes = await generateTypes(options.tools);
const prompt = `You are a helpful assistant. You have access to the "codemode" tool that can do different things:
const prompt = `${options.prompt}
You are a helpful assistant. You have access to the "codemode" tool that can do different things:

${getToolDescriptions(options.tools)}

Expand Down
Loading