fix(openai): avoid em dashes in gpt-5 overlay (#61560)

This commit is contained in:
Vincent Koc
2026-04-06 00:49:12 +01:00
committed by GitHub
parent 2693ae7ec3
commit 9fba0c6ac7
2 changed files with 12 additions and 1 deletions

View File

@@ -326,6 +326,12 @@ describe("openai plugin", () => {
expect(OPENAI_GPT5_OUTPUT_CONTRACT).toContain(
"Return the requested sections only, in the requested order.",
);
expect(OPENAI_GPT5_OUTPUT_CONTRACT).toContain(
"Prefer commas, periods, or parentheses over em dashes in normal prose.",
);
expect(OPENAI_GPT5_OUTPUT_CONTRACT).toContain(
"Do not use em dashes unless the user explicitly asks for them or they are required in quoted text.",
);
});
it("defaults to the friendly OpenAI interaction-style overlay", async () => {

View File

@@ -34,7 +34,12 @@ export const OPENAI_GPT5_OUTPUT_CONTRACT = `## GPT-5 Output Contract
Return the requested sections only, in the requested order.
Prefer terse answers by default; expand only when depth materially helps.
Avoid restating large internal plans when the next action is already clear.`;
Avoid restating large internal plans when the next action is already clear.
## Punctuation
Prefer commas, periods, or parentheses over em dashes in normal prose.
Do not use em dashes unless the user explicitly asks for them or they are required in quoted text.`;
export const OPENAI_GPT5_EXECUTION_BIAS = `## Execution Bias