Skip to content

Commit 1d11107

Browse files
committed
test(codex-proxy): update Chat Completions adaptation test to merged system position
The adapter now relocates in-input developer messages to the front as a single leading system message, so the expected message order changes from [user, system] to [system, user].
1 parent 63dec46 commit 1d11107

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/server/coding-agents-launch.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,9 +1366,11 @@ describe('coding agent launch preparation', () => {
13661366
expect(requestBody).toMatchObject({
13671367
model: 'deepseek-v4-pro',
13681368
max_tokens: 16,
1369+
// The in-input `developer` message converts to `system` and is relocated
1370+
// to the front (vLLM et al. reject a system message mid-conversation).
13691371
messages: [
1370-
{ role: 'user', content: 'hello' },
13711372
{ role: 'system', content: 'be terse' },
1373+
{ role: 'user', content: 'hello' },
13721374
],
13731375
})
13741376
expect(ctx.body.output[0].content[0].text).toBe('ok')

0 commit comments

Comments
 (0)