Skip to content

Commit e654eec

Browse files
committed
feat: upgrade pi-ai to 0.70.0 and add gpt-5.5 filter rules
Bump @mariozechner/pi-ai from ^0.68.1 to 0.70.0. Add gpt-5.5 to the request filter rules for both github-copilot and openai-codex providers (stripping temperature, matching the gpt-5.4 pattern). Also add gpt-5.5 to the vitest setup mock for openai-codex.
1 parent 6b1ca18 commit e654eec

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

bun.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@fastify/multipart": "^10.0.0",
1717
"@fastify/static": "^9.1.3",
1818
"@google/genai": "^1.50.1",
19-
"@mariozechner/pi-ai": "^0.68.1",
19+
"@mariozechner/pi-ai": "0.70.0",
2020
"@plexus/shared": "workspace:*",
2121
"@sinclair/typebox": "^0.34.49",
2222
"dotenv": "^17.4.2",

packages/backend/src/filters/pi-ai-request-filter-rules.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ export const PI_AI_REQUEST_FILTERS: PiAiRequestFilterRule[] = [
1313
strippedParameters: ['temperature'],
1414
comment: 'GitHub Copilot rejects temperature for this model.',
1515
},
16+
{
17+
provider: 'github-copilot',
18+
model: 'gpt-5.5',
19+
strippedParameters: ['temperature'],
20+
comment: 'GitHub Copilot rejects temperature for this model.',
21+
},
1622
{
1723
provider: 'github-copilot',
1824
model: 'gpt-5.2-codex',
@@ -43,6 +49,12 @@ export const PI_AI_REQUEST_FILTERS: PiAiRequestFilterRule[] = [
4349
strippedParameters: ['temperature'],
4450
comment: 'Codex OAuth rejects temperature for this model.',
4551
},
52+
{
53+
provider: 'openai-codex',
54+
model: 'gpt-5.5',
55+
strippedParameters: ['temperature'],
56+
comment: 'Codex OAuth rejects temperature for this model.',
57+
},
4658
{
4759
provider: 'openai-codex',
4860
model: 'gpt-5.2-codex',

packages/backend/test/vitest.setup.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const mockLogger = {
100100
// them; re-apply implementations in beforeEach because mockReset: true
101101
// wipes vi.fn() state between tests.
102102
// • getModels returns all known test models so quota-error assertions that
103-
// validate gpt-5.4 is valid for openai-codex always pass.
103+
// validate gpt-5.4/gpt-5.5 are valid for openai-codex always pass.
104104
// • getModel always includes the `api` field — OAuthTransformer.executeRequest
105105
// dispatches on model.api and crashes with "No API provider registered"
106106
// if it is missing.
@@ -117,6 +117,13 @@ vi.mock('@mariozechner/pi-ai', () => ({
117117
provider: 'openai-codex',
118118
api: 'openai-codex-responses',
119119
},
120+
{
121+
id: 'gpt-5.5',
122+
name: 'GPT-5.5',
123+
contextWindow: 128000,
124+
provider: 'openai-codex',
125+
api: 'openai-codex-responses',
126+
},
120127
];
121128
}
122129
return [

0 commit comments

Comments
 (0)