mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 13:05:03 +00:00
refactor(ai): streamline codex prompt handling
This commit is contained in:
parent
b04ce9fe95
commit
858c6bae8a
6 changed files with 99 additions and 104 deletions
|
|
@ -7,7 +7,7 @@ describe("openai-codex include handling", () => {
|
|||
model: "gpt-5.1-codex",
|
||||
};
|
||||
|
||||
const transformed = await transformRequestBody(body, "CODEX_INSTRUCTIONS", { include: ["foo"] }, true);
|
||||
const transformed = await transformRequestBody(body, { include: ["foo"] });
|
||||
expect(transformed.include).toEqual(["foo", "reasoning.encrypted_content"]);
|
||||
});
|
||||
|
||||
|
|
@ -16,12 +16,9 @@ describe("openai-codex include handling", () => {
|
|||
model: "gpt-5.1-codex",
|
||||
};
|
||||
|
||||
const transformed = await transformRequestBody(
|
||||
body,
|
||||
"CODEX_INSTRUCTIONS",
|
||||
{ include: ["foo", "reasoning.encrypted_content"] },
|
||||
true,
|
||||
);
|
||||
const transformed = await transformRequestBody(body, {
|
||||
include: ["foo", "reasoning.encrypted_content"],
|
||||
});
|
||||
expect(transformed.include).toEqual(["foo", "reasoning.encrypted_content"]);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue