forked from Shinonome/dots-hyprland
generalize the : thing in llm apis
This commit is contained in:
@@ -391,9 +391,7 @@ Singleton {
|
|||||||
cleanData = cleanData.slice(5).trim();
|
cleanData = cleanData.slice(5).trim();
|
||||||
}
|
}
|
||||||
// console.log("Clean data: ", cleanData);
|
// console.log("Clean data: ", cleanData);
|
||||||
if (!cleanData ||
|
if (!cleanData || cleanData.startsWith(":")) return;
|
||||||
cleanData === ": OPENROUTER PROCESSING"
|
|
||||||
) return;
|
|
||||||
|
|
||||||
if (cleanData === "[DONE]") {
|
if (cleanData === "[DONE]") {
|
||||||
requester.message.done = true;
|
requester.message.done = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user