@@ -12,7 +12,6 @@ export enum MockEventType {
12
12
MIDWAY_FAIL = 'midway fail' ,
13
13
TIMEOUT_FAIL = 'timeout fail' ,
14
14
INCOMPLETE_FAIL = 'incomplete fail' ,
15
- RAG_FAIL = 'rag fail' ,
16
15
CODE_BLOCK = 'code block' ,
17
16
MATH_BLOCK = 'math block' ,
18
17
}
@@ -43,7 +42,6 @@ export const getBasicStreamMock = (): MockResponseStreamEvent[] => {
43
42
- To mock a mid-sentence failed response, write: **midway fail**
44
43
- To mock a incomplete response, write: **incomplete fail**
45
44
- To mock a file search, write: **rag** -- _make sure to have a RAG index selected_
46
- - To mock a file search fail response, write: **rag fail** -- _make sure to have a RAG index selected_
47
45
- To mock a code block, write: **code block**
48
46
- To mock a math block, write: **math block**
49
47
OVER
@@ -219,37 +217,6 @@ export const getFileSearchStreamMock = (): MockResponseStreamEvent[] => {
219
217
]
220
218
}
221
219
222
- export const getFileSearchFailStreamMock = ( ) : MockResponseStreamEvent [ ] => {
223
- const responseText = `For testing failed RAG stream. Not implemented yet.`
224
-
225
- const chunkedResponseText = chunkText ( responseText )
226
-
227
- return [
228
- {
229
- type : 'response.created' ,
230
- } ,
231
- ...chunkedResponseText . map ( ( chunk ) => ( {
232
- type : 'response.output_text.delta' as ResponseStreamEvent [ 'type' ] ,
233
- item_id : 'msg_mock' ,
234
- delta : chunk ,
235
- } ) ) ,
236
- {
237
- type : 'response.completed' ,
238
- response : {
239
- id : '' ,
240
- usage : {
241
- input_tokens : 0 ,
242
- output_tokens : 0 ,
243
- output_tokens_details : {
244
- reasoning_tokens : 0 ,
245
- } ,
246
- total_tokens : 0 ,
247
- } ,
248
- } ,
249
- } ,
250
- ]
251
- }
252
-
253
220
export const getCodeBlockStreamMock = ( ) : MockResponseStreamEvent [ ] => {
254
221
const chunkedResponseText = chunkText ( codeTestContent )
255
222
0 commit comments