Skip to content

Commit 2b1a5b1

Browse files
committed
refactor(session): stop injecting provider-specific prompts into system message
1 parent 9b885f5 commit 2b1a5b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/opencode/src/session

packages/opencode/src/session/llm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ export namespace LLM {
160160
const system: string[] = []
161161
system.push(
162162
[
163-
// use agent prompt otherwise provider prompt
164-
...(input.agent.prompt ? [input.agent.prompt] : SystemPrompt.provider(model)),
163+
// use agent prompt if set
164+
...(input.agent.prompt ? [input.agent.prompt] : []),
165165
// any custom prompt passed into this call
166166
...input.system,
167167
// any custom prompt from last user message

0 commit comments

Comments
 (0)