Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAPA-374] feat(api): updates model to gpt-4 #65

Merged
merged 5 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -149,7 +145,7 @@ jobs:
run: find packages/api -type d -exec cp .env {} \;

- name: Install serverless globally
run: pnpm add serverless --global
run: pnpm add serverless@3.38.0 --global

- name: Serverless AWS authentication
run: sls config credentials --provider aws --key ${{ secrets.AWS_ACCESS_KEY_ID }} --secret ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
"dev": "pnpm -r dev",
"deploy": "pnpm -r deploy"
},
"dependencies": {},
"devDependencies": {
"eslint": "8.40.0",
"husky": "^8.0.3",
"jest": "^29.6.4",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"prettier": "^3.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/createChatEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function readFromS3ToLocalFS(filename: string, persistDir: string) {
}

function createServiceContext() {
const openaiLLM = new OpenAI({ model: "gpt-3.5-turbo", temperature: 0 });
const openaiLLM = new OpenAI({ model: "gpt-4", temperature: 0 });
const serviceContext = serviceContextFromDefaults({ llm: openaiLLM });
return serviceContext;
}
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@vercel/examples-ui": "^1.0.5",
"eventsource-parser": "^1.0.0",
"framer-motion": "^10.16.1",
"next": "13.4.3",
"next": "^13.5.6",
"react": "18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "18.2.0",
Expand Down
Loading
Loading