Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/__tests__/bugfixes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ describe('Gemini store field fix', () => {
expect(mistralDescriptor).toContain("removeBodyFields: ['store']")
})

test('store: false is still set by default and only removed via shim config', async () => {
const content = await file('services/api/openaiShim.ts').text()

expect(content).toMatch(/store:\s*false/)
expect(content).toContain('shimConfig.removeBodyFields')
expect(content).toContain('delete body[field]')
})

test('openaiShim does not keep a hardcoded descriptor route fallback list', async () => {
const content = await file('services/api/openaiShim.ts').text()

Expand Down Expand Up @@ -451,14 +443,6 @@ describe('Regression checks', () => {
}
})

test('store field remains opt-out by per-route config rather than unconditional deletion', async () => {
const openaiShim = await file('services/api/openaiShim.ts').text()
const runtimeMetadata = await file('integrations/runtimeMetadata.ts').text()

expect(openaiShim).toMatch(/store:\s*false/)
expect(openaiShim).toContain('for (const field of shimConfig.removeBodyFields ?? [])')
expect(runtimeMetadata).toContain('mergeRemoveBodyFields')
})
})

// ---------------------------------------------------------------------------
Expand Down
Loading