@@ -197,12 +197,6 @@ async function loadFixture(providerID: string, modelID: string) {
197197 return { provider, model }
198198}
199199
200- async function writeModels ( models : Record < string , ModelsDev . Provider > ) {
201- const modelsPath = path . join ( Global . Path . cache , "models.json" )
202- await Bun . write ( modelsPath , JSON . stringify ( models ) )
203- ModelsDev . Data . reset ( )
204- }
205-
206200function createEventStream ( chunks : unknown [ ] , includeDone = false ) {
207201 const lines = chunks . map ( ( chunk ) => `data: ${ typeof chunk === "string" ? chunk : JSON . stringify ( chunk ) } ` )
208202 if ( includeDone ) {
@@ -246,8 +240,6 @@ describe("session.llm.stream", () => {
246240 } ) ,
247241 )
248242
249- await writeModels ( { [ providerID ] : provider } )
250-
251243 await using tmp = await tmpdir ( {
252244 init : async ( dir ) => {
253245 await Bun . write (
@@ -342,7 +334,7 @@ describe("session.llm.stream", () => {
342334 throw new Error ( "Server not initialized" )
343335 }
344336
345- const source = await loadFixture ( "github-copilot " , "gpt-5.1 " )
337+ const source = await loadFixture ( "openai " , "gpt-5.2 " )
346338 const model = source . model
347339
348340 const responseChunks = [
@@ -377,8 +369,6 @@ describe("session.llm.stream", () => {
377369 ]
378370 const request = waitRequest ( "/responses" , createEventResponse ( responseChunks , true ) )
379371
380- await writeModels ( { } )
381-
382372 await using tmp = await tmpdir ( {
383373 init : async ( dir ) => {
384374 await Bun . write (
@@ -513,8 +503,6 @@ describe("session.llm.stream", () => {
513503 ]
514504 const request = waitRequest ( "/messages" , createEventResponse ( chunks ) )
515505
516- await writeModels ( { [ providerID ] : provider } )
517-
518506 await using tmp = await tmpdir ( {
519507 init : async ( dir ) => {
520508 await Bun . write (
@@ -623,8 +611,6 @@ describe("session.llm.stream", () => {
623611 ]
624612 const request = waitRequest ( pathSuffix , createEventResponse ( chunks ) )
625613
626- await writeModels ( { [ providerID ] : provider } )
627-
628614 await using tmp = await tmpdir ( {
629615 init : async ( dir ) => {
630616 await Bun . write (
0 commit comments