chore(puterai): update model

This commit is contained in:
KernelDeimos
2024-08-23 16:09:22 -04:00
parent 6cf7d0ae27
commit 7f9d1e90b1
3 changed files with 7 additions and 7 deletions
+5 -4
View File
@@ -15371,9 +15371,10 @@
"dev": true
},
"node_modules/tiktoken": {
"version": "1.0.15",
"resolved": "https://registry.npmjs.org/tiktoken/-/tiktoken-1.0.15.tgz",
"integrity": "sha512-sCsrq/vMWUSEW29CJLNmPvWxlVp7yh2tlkAjpJltIKqp5CKf98ZNpdeHRmAlPVFlGEbswDc6SmI8vz64W/qErw=="
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/tiktoken/-/tiktoken-1.0.16.tgz",
"integrity": "sha512-hRcORIGF2YlAgWx3nzrGJOrKSJwLoc81HpXmMQk89632XAgURc7IeV2FgQ2iXo9z/J96fCvpsHg2kWoHcbj9fg==",
"license": "MIT"
},
"node_modules/tildify": {
"version": "2.0.0",
@@ -16719,7 +16720,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",
+1 -1
View File
@@ -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",
@@ -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];