File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class MockAPIClient extends APIClient {
9
9
}
10
10
11
11
12
- describe ( 'Completions ' , ( ) => {
12
+ describe ( 'ConversationalRag ' , ( ) => {
13
13
let convRag : ConversationalRag ;
14
14
let mockClient : MockAPIClient ;
15
15
const dummyAPIKey = "test-api-key" ;
@@ -28,7 +28,7 @@ describe('Completions', () => {
28
28
jest . clearAllMocks ( ) ;
29
29
} ) ;
30
30
31
- it ( 'should create a chat completion with answer_in_context false when relevant context is not found' , async ( ) => {
31
+ it ( 'should create a conversational-rag response with answer_in_context false when relevant context is not found' , async ( ) => {
32
32
const body = { messages : [ { role : 'user' , content : 'What is the meaning of life?' } ] }
33
33
34
34
const options : Models . RequestOptions = { headers : { 'Authorization' : `Bearer ${ dummyAPIKey } ` } } ;
@@ -58,7 +58,7 @@ describe('Completions', () => {
58
58
} ) ;
59
59
60
60
61
- it ( 'should create a chat completion with answer_in_context true and sources when relevant context is found' , async ( ) => {
61
+ it ( 'should create a conversational-rag response with answer_in_context true and sources when relevant context is found' , async ( ) => {
62
62
const body = { messages : [ { role : 'user' , content : 'What is the OOO policy in our office?' } ] }
63
63
64
64
const options : Models . RequestOptions = { headers : { 'Authorization' : `Bearer ${ dummyAPIKey } ` } } ;
You can’t perform that action at this time.
0 commit comments