backend-manager 3.2.90 → 3.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-manager",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.92",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -71,4 +71,4 @@
|
|
|
71
71
|
"wonderful-log": "^1.0.5",
|
|
72
72
|
"yargs": "^17.7.2"
|
|
73
73
|
}
|
|
74
|
-
}
|
|
74
|
+
}
|
|
@@ -5,6 +5,11 @@ const _ = require('lodash');
|
|
|
5
5
|
const JSON5 = require('json5');
|
|
6
6
|
|
|
7
7
|
const TOKEN_COST_TABLE = {
|
|
8
|
+
// Apr 9th, 2024
|
|
9
|
+
'gpt-4-turbo': {
|
|
10
|
+
input: 0.0100,
|
|
11
|
+
output: 0.0300,
|
|
12
|
+
},
|
|
8
13
|
// Mar 6th, 2024
|
|
9
14
|
'gpt-4-turbo-preview': {
|
|
10
15
|
input: 0.0100,
|
|
@@ -228,6 +233,7 @@ OpenAI.prototype.request = function (options) {
|
|
|
228
233
|
m.content = [
|
|
229
234
|
{ type: 'text', text: m.text },
|
|
230
235
|
]
|
|
236
|
+
m.images = m.images || [];
|
|
231
237
|
|
|
232
238
|
// Loop through and add
|
|
233
239
|
m.images.forEach((i) => {
|