backend-manager 3.2.124 → 3.2.126

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.124",
3
+ "version": "3.2.126",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -28,12 +28,12 @@ Module.prototype.main = function () {
28
28
  try {
29
29
  hook = (new (require(pathify(`${Manager.cwd}/${payload.data.payload.path}.js`)))());
30
30
  } catch (e) {
31
- hook = (new (require(pathify(`${Manager.cwd}/routes/hooks/${payload.data.payload.path}.js`)))());
31
+ hook = (new (require(pathify(`${Manager.cwd}/hooks/${payload.data.payload.path}.js`)))());
32
32
  }
33
33
 
34
34
  // Run the hook
35
35
  try {
36
- const result = await hook.main(Manager);
36
+ const result = await hook.main(assistant);
37
37
 
38
38
  return resolve({data: result, status: 200});
39
39
  } catch (e) {
@@ -5,7 +5,11 @@ const _ = require('lodash');
5
5
  const JSON5 = require('json5');
6
6
 
7
7
  const TOKEN_COST_TABLE = {
8
- // Apr 9th, 2024
8
+ // May 13th, 2024
9
+ 'gpt-4o': {
10
+ input: 0.0050,
11
+ output: 0.0150,
12
+ },
9
13
  'gpt-4-turbo': {
10
14
  input: 0.0100,
11
15
  output: 0.0300,
@@ -31,6 +35,32 @@ const TOKEN_COST_TABLE = {
31
35
  output: 0.0015,
32
36
  },
33
37
 
38
+ // // Apr 9th, 2024
39
+ // 'gpt-4-turbo': {
40
+ // input: 0.0100,
41
+ // output: 0.0300,
42
+ // },
43
+ // 'gpt-4-turbo-preview': {
44
+ // input: 0.0100,
45
+ // output: 0.0300,
46
+ // },
47
+ // 'gpt-4-vision-preview': {
48
+ // input: 0.0100,
49
+ // output: 0.0300,
50
+ // },
51
+ // 'gpt-4-1106-preview': {
52
+ // input: 0.0100,
53
+ // output: 0.0300,
54
+ // },
55
+ // 'gpt-4': {
56
+ // input: 0.0300,
57
+ // output: 0.0600,
58
+ // },
59
+ // 'gpt-3.5-turbo': {
60
+ // input: 0.0005,
61
+ // output: 0.0015,
62
+ // },
63
+
34
64
  // Mar 6th, 2024
35
65
  // 'gpt-4-turbo-preview': {
36
66
  // input: 0.0100,