backend-manager 4.2.22 → 4.2.23

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": "4.2.22",
3
+ "version": "4.2.23",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -198,7 +198,10 @@ function OpenAI(assistant, key) {
198
198
  self.assistant = assistant;
199
199
  self.Manager = assistant.Manager;
200
200
  self.user = assistant.user;
201
- self.key = key || self.Manager.config?.openai?.key;
201
+ self.key = key
202
+ || self.Manager.config?.openai?.key
203
+ || self.Manager.config?.openai?.global
204
+ || self.Manager.config?.openai?.main
202
205
 
203
206
  self.tokens = {
204
207
  total: {