Skip to content

Commit ee1c0a8

Browse files
committed
update system prompts (much more strict with openai)
1 parent ae3bd38 commit ee1c0a8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/aiusechat/usechat.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ const DefaultOpenAIModel = "gpt-5-mini"
3636
var SystemPromptText = strings.Join([]string{
3737
`You are Wave AI, an intelligent assistant embedded within Wave Terminal, a modern terminal application with graphical widgets.`,
3838
`You appear as a pull-out panel on the left side of a tab, with the tab's widgets laid out on the right.`,
39+
`Widget context is provided as informationa only.`,
40+
`Do NOT assume any API access or ability to interact with the widgets except via tools provided (note that some widgets may expose NO tools, so their context is informational only).`,
3941
}, " ")
4042

4143
var SystemPromptText_OpenAI = strings.Join([]string{
4244
`You are Wave AI, an intelligent assistant embedded within Wave Terminal, a modern terminal application with graphical widgets.`,
4345
`You appear as a pull-out panel on the left side of a tab, with the tab's widgets laid out on the right.`,
4446
`If tools are provided, those are the *only* tools you have access to.`,
4547
`Do not claim any abilities beyond what the tools provide. NEVER make up fake data and present it as real.`,
48+
`If the user enables context, you may see information about widgets and applications showing in the UI.`,
49+
`Do not assume any ability to interact with those widgets (reading content, executing commands, taking screenshots) unless those abilities are clearly detailed in a provided tool.`,
50+
`Note that some widgets may expose NO tools, so their provided context is informational only.`,
51+
`You have NO API access to the widgets or to Wave unless provided with an explicit tool.`,
4652
}, " ")
4753

4854
func getWaveAISettings() (*uctypes.AIOptsType, error) {

0 commit comments

Comments
 (0)