-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move all instructions into model-specific prompt #2156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,8 +7,10 @@ import { PromptElement, PromptSizing } from '@vscode/prompt-tsx'; | |||||||
| import { isGpt51Family, isGptCodexFamily } from '../../../../../platform/endpoint/common/chatModelCapabilities'; | ||||||||
| import { IChatEndpoint } from '../../../../../platform/networking/common/networking'; | ||||||||
| import { ToolName } from '../../../../tools/common/toolNames'; | ||||||||
| import { GPT5CopilotIdentityRule } from '../../base/copilotIdentity'; | ||||||||
| import { InstructionMessage } from '../../base/instructionMessage'; | ||||||||
| import { ResponseTranslationRules } from '../../base/responseTranslationRules'; | ||||||||
| import { Gpt5SafetyRule } from '../../base/safetyRules'; | ||||||||
| import { Tag } from '../../base/tag'; | ||||||||
| import { MathIntegrationRules } from '../../panel/editorIntegrationRules'; | ||||||||
| import { ApplyPatchInstructions, DefaultAgentPromptProps, detectToolCapabilities, McpToolInstructions } from '../defaultAgentInstructions'; | ||||||||
|
|
@@ -18,6 +20,9 @@ class Gpt51Prompt extends PromptElement<DefaultAgentPromptProps> { | |||||||
| async render(state: void, sizing: PromptSizing) { | ||||||||
| const tools = detectToolCapabilities(this.props.availableTools); | ||||||||
| return <InstructionMessage> | ||||||||
|
||||||||
| return <InstructionMessage> | |
| return <InstructionMessage> | |
| You are an expert AI programming assistant, working with a user in the VS Code editor.<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The introductory sentence "You are an expert AI programming assistant, working with a user in the VS Code editor." is missing here but present in gpt5Prompt.tsx and gpt5CodexPrompt.tsx. This inconsistency means different GPT-5.1 models get different identity preambles. Add the missing introductory sentence before
<GPT5CopilotIdentityRule />for consistency, or document why this model should have a different introduction.