@baseai/core
Advanced tools
Comparing version 0.9.30 to 0.9.31
# `baseai` SDK | ||
## 0.9.31 | ||
### Patch Changes | ||
- 98f2d7c: 🐛 FIX: Local development server | ||
- 👌 IMPROVE: Local development server | ||
## 0.9.30 | ||
@@ -4,0 +11,0 @@ |
@@ -989,2 +989,3 @@ "use strict"; | ||
async createRequest(endpoint, body) { | ||
const isProdEnv = this.prod; | ||
const prodOptions = { | ||
@@ -997,14 +998,16 @@ endpoint, | ||
}; | ||
const providerString = this.pipe.model.split(":")[0]; | ||
const modelProvider = getProvider(providerString); | ||
const localOptions = { | ||
endpoint, | ||
body: { | ||
...body, | ||
pipe: this.pipe, | ||
llmApiKey: getLLMApiKey(modelProvider) | ||
} | ||
}; | ||
const isProdEnv = this.prod; | ||
let localOptions = {}; | ||
if (!isProdEnv) { | ||
const providerString = this.pipe.model.split(":")[0]; | ||
const modelProvider = getProvider(providerString); | ||
localOptions = { | ||
endpoint, | ||
body: { | ||
...body, | ||
pipe: this.pipe, | ||
llmApiKey: getLLMApiKey(modelProvider) | ||
} | ||
}; | ||
} | ||
if (!isProdEnv) { | ||
const isServerRunning = await isLocalServerRunning(); | ||
@@ -1011,0 +1014,0 @@ if (!isServerRunning) return {}; |
{ | ||
"name": "@baseai/core", | ||
"description": "The Web AI Framework's core - BaseAI.dev", | ||
"version": "0.9.30", | ||
"version": "0.9.31", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -980,2 +980,3 @@ "use strict"; | ||
async createRequest(endpoint, body) { | ||
const isProdEnv = this.prod; | ||
const prodOptions = { | ||
@@ -988,14 +989,16 @@ endpoint, | ||
}; | ||
const providerString = this.pipe.model.split(":")[0]; | ||
const modelProvider = getProvider(providerString); | ||
const localOptions = { | ||
endpoint, | ||
body: { | ||
...body, | ||
pipe: this.pipe, | ||
llmApiKey: getLLMApiKey(modelProvider) | ||
} | ||
}; | ||
const isProdEnv = this.prod; | ||
let localOptions = {}; | ||
if (!isProdEnv) { | ||
const providerString = this.pipe.model.split(":")[0]; | ||
const modelProvider = getProvider(providerString); | ||
localOptions = { | ||
endpoint, | ||
body: { | ||
...body, | ||
pipe: this.pipe, | ||
llmApiKey: getLLMApiKey(modelProvider) | ||
} | ||
}; | ||
} | ||
if (!isProdEnv) { | ||
const isServerRunning = await isLocalServerRunning(); | ||
@@ -1002,0 +1005,0 @@ if (!isServerRunning) return {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
464941
5480