Ignore commas while looking for embeddings

This commit is contained in:
cmdr2 2023-08-17 16:09:17 +05:30
parent 95004be0e9
commit fa3f196add

View File

@ -1668,7 +1668,7 @@ function getCurrentUserRequest() {
function setEmbeddings(task) {
let prompt = task.reqBody.prompt.toLowerCase()
let negativePrompt = task.reqBody.negative_prompt.toLowerCase()
let overallPrompt = (prompt + " " + negativePrompt).split(" ")
let overallPrompt = (prompt + " " + negativePrompt).replaceAll(",", "").split(" ")
let embeddingsTree = modelsOptions["embeddings"]
let embeddings = []