File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
getUserMessage ,
18
18
getUserConfirmation ,
19
19
type VerificationPublicKey ,
20
+ type InteropMessage ,
20
21
CopilotRequestPayload ,
21
22
prompt ,
22
23
} from "./index.js" ;
@@ -79,11 +80,10 @@ export function createAckEventTest() {
79
80
expectType < ( ) => string > ( event . toString ) ;
80
81
expectType < string > ( event . toString ( ) ) ;
81
82
83
+
82
84
expectType < {
83
85
choices : [ {
84
- delta : {
85
- content : "" , role : "assistant"
86
- }
86
+ delta : InteropMessage < "assistant" >
87
87
} ]
88
88
} > ( event . data ) ;
89
89
@@ -98,9 +98,7 @@ export function createTextEventTest() {
98
98
99
99
expectType < {
100
100
choices : [ {
101
- delta : {
102
- content : string , role : "assistant"
103
- }
101
+ delta : InteropMessage < "assistant" >
104
102
} ]
105
103
} > ( event . data ) ;
106
104
@@ -243,6 +241,7 @@ export function transformPayloadForOpenAICompatibilityTest(payload: CopilotReque
243
241
content : string ;
244
242
role : string ;
245
243
name ?: string
244
+ [ key : string ] : unknown
246
245
} [ ]
247
246
}
248
247
> ( result ) ;
You can’t perform that action at this time.
0 commit comments