Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurvir committed Apr 11, 2024
1 parent 729d0a7 commit 5e1f144
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/AI.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class AI {
{"role": "system", "content": `User profile : ${JSON.stringify(session.profile)}`},
...last_action_context,
{"role": "system", "content": `Following is the conversation history`},
...session?.text?.slice(-3),
...session?.text?.slice(-3) || [],
{ "role": "user", "content": instruction }
]

Expand Down
4 changes: 2 additions & 2 deletions tests/apis/agent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ describe('Test cases for trip planning workflow', ()=>{
})
})

describe.only('Test cases for booking collection', ()=>{
it.only('Should make the hotel bookings', async ()=>{
describe.skip('Test cases for booking collection', ()=>{
it('Should make the hotel bookings', async ()=>{

const chats = [
"Hey Alfred, you up? ",
Expand Down
1 change: 0 additions & 1 deletion tests/unit/services/ai.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { readFileSync } from 'fs';
import { EMPTY_SESSION } from '../../../config/constants.js';
const ai = new AI();
const on_search = JSON.parse(readFileSync('./tests/data/api_responses/on_search.json'))
const on_search_compressed = JSON.parse(readFileSync('./tests/data/api_responses/on_search_compressed.json'))
const on_select = JSON.parse(readFileSync('./tests/data/api_responses/on_select.json'))
const on_init = JSON.parse(readFileSync('./tests/data/api_responses/on_init.json'))
const on_confirm = JSON.parse(readFileSync('./tests/data/api_responses/on_confirm.json'))
Expand Down

0 comments on commit 5e1f144

Please sign in to comment.