This commit is contained in:
@@ -47,14 +47,14 @@ async function callOllama(prompt, model = "gemma3n:e4b", retries = 6, stepName =
|
||||
function parseList(raw) {
|
||||
return raw
|
||||
.split("\n")
|
||||
.map(line => line.replace(/^\d+[\).\s-]*/, "").trim())
|
||||
.map(line => line.replace(/^\d+[).\s-]*/, "").trim())
|
||||
.filter(line => line.length > 0);
|
||||
}
|
||||
|
||||
function parseObjects(raw, type = "rooms") {
|
||||
return raw
|
||||
.split("\n")
|
||||
.map(line => line.replace(/^\d+[\).\s-]*/, "").trim())
|
||||
.map(line => line.replace(/^\d+[).\s-]*/, "").trim())
|
||||
.filter(line => line.length > 0)
|
||||
.map(entry => {
|
||||
if (type === "rooms") {
|
||||
|
||||
Reference in New Issue
Block a user