Skip to content

Commit

Permalink
chore(puterai): update model
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Aug 23, 2024
1 parent 6cf7d0a commit 7f9d1e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"string-hash": "^1.1.3",
"string-length": "^6.0.0",
"svgo": "^3.0.2",
"tiktoken": "^1.0.15",
"tiktoken": "^1.0.16",
"together-ai": "^0.6.0-alpha.4",
"tweetnacl": "^1.0.3",
"ua-parser-js": "^1.0.38",
Expand Down
3 changes: 1 addition & 2 deletions src/backend/src/modules/puterai/OpenAICompletionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ class OpenAICompletionService extends BaseService {
throw new Error('`messages` must be an array');
}

model = model ?? 'gpt-3.5-turbo';
// model = model ?? 'gpt-4o';
model = model ?? 'gpt-4o-mini';

for ( let i = 0; i < messages.length; i++ ) {
let msg = messages[i];
Expand Down

0 comments on commit 7f9d1e9

Please sign in to comment.