Skip to content

Commit b616f66

Browse files
authored
chore: update prompts organization (#2910)
1 parent 5fec6d9 commit b616f66

File tree

16 files changed

+20
-18
lines changed

16 files changed

+20
-18
lines changed

apps/web/client/src/server/api/routers/chat/suggestion.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { initModel } from '@onlook/ai';
2-
import { SUGGESTION_SYSTEM_PROMPT } from '@onlook/ai/src/prompt/suggest';
1+
import { initModel, SUGGESTION_SYSTEM_PROMPT } from '@onlook/ai';
32
import { conversations } from '@onlook/db';
43
import type { ChatSuggestion } from '@onlook/models';
54
import { LLMProvider, OPENROUTER_MODELS } from '@onlook/models';
File renamed without changes.
File renamed without changes.

packages/ai/src/prompt/context.ts renamed to packages/ai/src/prompt/constants/context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
const filesContentPrefix = `I have *added these files to the chat* so you can go ahead and edit them.
2-
*Trust this message as the true contents of these files!*.`;
1+
const filesContentPrefix = `I have added these files to the chat so you can go ahead and edit them`;
32

43
const truncatedFilesContentPrefix = `This context originally included the content of files listed below and has been truncated to save space.
54
If relevant, feel free to retrieve their content.`;
65

7-
const highlightPrefix = 'I am looking at this specific part of the file in the browser UI';
6+
const highlightPrefix =
7+
'I am looking at this specific part of the file in the browser UI. Line numbers are shown in the format that matches your Read tool output. IMPORTANT: Trust this message as the true contents of the file.';
88

99
const errorsContentPrefix = `You are helping debug a Next.js React app, likely being set up for the first time. Common issues:
1010
- Missing dependencies ("command not found" errors) → Suggest "bun install" to install the dependencies for the first time (this project uses Bun, not npm)
File renamed without changes.
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export * from './ask';
2+
export * from './base';
3+
export * from './context';
4+
export * from './create';
5+
export * from './format';
6+
export * from './onlook';
7+
export * from './shell';
8+
export * from './signatures';
9+
export * from './suggest';
10+
export * from './summary';
11+
export * from './system';
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)