diff --git a/src/ts/process/memory/hypamemory.ts b/src/ts/process/memory/hypamemory.ts index e9691155..90282e14 100644 --- a/src/ts/process/memory/hypamemory.ts +++ b/src/ts/process/memory/hypamemory.ts @@ -50,8 +50,8 @@ export class HypaProcesser{ alertError('Custom model requires a Custom Server URL') return [0] } - - const replaceUrl = appendLastPath(this.customEmbeddingUrl,'embeddings') + const {customEmbeddingUrl} = this + const replaceUrl = customEmbeddingUrl.endsWith('/embeddings')?customEmbeddingUrl:appendLastPath(customEmbeddingUrl,'embeddings') gf = await globalFetch(replaceUrl.toString(), { body:{