Fix customEmbeddingUrl handling in HypaProcesser
This commit is contained in:
@@ -50,8 +50,8 @@ export class HypaProcesser{
|
|||||||
alertError('Custom model requires a Custom Server URL')
|
alertError('Custom model requires a Custom Server URL')
|
||||||
return [0]
|
return [0]
|
||||||
}
|
}
|
||||||
|
const {customEmbeddingUrl} = this
|
||||||
const replaceUrl = appendLastPath(this.customEmbeddingUrl,'embeddings')
|
const replaceUrl = customEmbeddingUrl.endsWith('/embeddings')?customEmbeddingUrl:appendLastPath(customEmbeddingUrl,'embeddings')
|
||||||
|
|
||||||
gf = await globalFetch(replaceUrl.toString(), {
|
gf = await globalFetch(replaceUrl.toString(), {
|
||||||
body:{
|
body:{
|
||||||
|
|||||||
Reference in New Issue
Block a user