Skip to content

Commit bc282e1

Browse files
amirai21asafgardin
authored andcommitted
feat: tests wip
1 parent a7a1dee commit bc282e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/resources/chat/convRag.test.ts renamed to tests/resources/chat/conversationalRag.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MockAPIClient extends APIClient {
99
}
1010

1111

12-
describe('Completions', () => {
12+
describe('ConversationalRag', () => {
1313
let convRag: ConversationalRag;
1414
let mockClient: MockAPIClient;
1515
const dummyAPIKey = "test-api-key";
@@ -28,7 +28,7 @@ describe('Completions', () => {
2828
jest.clearAllMocks();
2929
});
3030

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 () => {
3232
const body = {messages: [{ role: 'user', content: 'What is the meaning of life?' }]}
3333

3434
const options: Models.RequestOptions = { headers: { 'Authorization': `Bearer ${dummyAPIKey}` } };
@@ -58,7 +58,7 @@ describe('Completions', () => {
5858
});
5959

6060

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 () => {
6262
const body = {messages: [{ role: 'user', content: 'What is the OOO policy in our office?' }]}
6363

6464
const options: Models.RequestOptions = { headers: { 'Authorization': `Bearer ${dummyAPIKey}` } };

0 commit comments

Comments
 (0)