fix: ENAMETOOLONG: name too long when adding custom mode (#881)

This commit is contained in:
alexz
2025-07-11 16:54:52 +02:00
committed by GitHub
parent 26fd76fbee
commit dfbef066c7

View File

@@ -53,7 +53,7 @@ export namespace Mode {
providerID,
}
}
if (value.prompt) item.prompt = await Bun.file(value.prompt).text()
if (value.prompt) item.prompt = value.prompt
if (value.tools) item.tools = value.tools
}