@joshuaswarren/openclaw-engram 9.0.80 → 9.0.81
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/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11840,10 +11840,11 @@ var EmbeddingFallback = class {
|
|
|
11840
11840
|
const providers = preferred === "auto" ? ["openai", "local"] : [preferred];
|
|
11841
11841
|
for (const p of providers) {
|
|
11842
11842
|
if (p === "openai" && this.config.openaiApiKey) {
|
|
11843
|
+
const baseUrl = this.config.openaiBaseUrl ?? "https://api.openai.com/v1";
|
|
11843
11844
|
return {
|
|
11844
11845
|
type: "openai",
|
|
11845
11846
|
model: DEFAULT_OPENAI_MODEL2,
|
|
11846
|
-
endpoint: "
|
|
11847
|
+
endpoint: `${baseUrl.replace(/\/$/, "")}/embeddings`,
|
|
11847
11848
|
headers: {
|
|
11848
11849
|
"Content-Type": "application/json",
|
|
11849
11850
|
Authorization: `Bearer ${this.config.openaiApiKey}`
|