File tree Expand file tree Collapse file tree
packages/opencode/test/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ describe("session.llm.stream", () => {
368368 await Instance . provide ( {
369369 directory : tmp . path ,
370370 fn : async ( ) => {
371- const resolved = await Provider . getModel ( providerID , model . id )
372- const sessionID = "session-test-tools"
371+ const resolved = await Provider . getModel ( ProviderID . make ( providerID ) , ModelID . make ( model . id ) )
372+ const sessionID = SessionID . make ( "session-test-tools" )
373373 const agent = {
374374 name : "test" ,
375375 mode : "primary" ,
@@ -378,12 +378,12 @@ describe("session.llm.stream", () => {
378378 } satisfies Agent . Info
379379
380380 const user = {
381- id : "user-tools" ,
381+ id : MessageID . make ( "user-tools" ) ,
382382 sessionID,
383383 role : "user" ,
384384 time : { created : Date . now ( ) } ,
385385 agent : agent . name ,
386- model : { providerID, modelID : resolved . id } ,
386+ model : { providerID : ProviderID . make ( providerID ) , modelID : resolved . id } ,
387387 tools : { question : true } ,
388388 } satisfies MessageV2 . User
389389
You can’t perform that action at this time.
0 commit comments