mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 01:52:04 +00:00
fix(openai): avoid em dashes in gpt-5 overlay (#61560)
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user