Spyke

Posts

perchance·Perchance - Create a Random Text GeneratorbyEric9082

Problem with Comlink.wrap

When I start ai-character-chat (Win11 Pro), I am getting the error shown in the attached image:

"An error has occurred somewhere in your code (in lists or HTML): An unhandled promise rejection occurred: Comlink.wrap is not a function"

I'm not sure how to correct this; any help would be appreciated - thanks!

View original on lemmy.world
perchance·Perchance - Create a Random Text GeneratorbyEric9082

Lore handling question

From posts that I've read, the Perchance AI Character Char (ACC) will only load Lore files via URL into the main AI character.

Does this mean that it ignores Lore URLs in other characters' Lore entry box (won't load them), or appends those URLs as well into the main character's Lore?

At first, I thought this was an easy fix: in the main character Lore URL box, just enter the Lorebook URLs of all the characters (e.g., "Mike.txt", "Tim.txt", etc.) and they'd all get loaded.

However, my best understanding of how Lore is used is that when a user message is formed and sent to the AI LLM, the ACC will (always? occasionally?) select one (or more?) Lore entries at random to help flavor the AI response.

I think this means that if other characters' Lore is mixed in to a single "pool" of Lore entries under the main character, then for a Tim character reply, the Lore sent over to the LLM could be random picks of from the pool that contains "Mike" lore and "Tim" lore, etc. In other words, flavoring the "Tim" reply with unrelated Lore facts about Mike.

Could someone kindly let me know if my thinking above is valid? Thanks!

View original on lemmy.world
perchance·Perchance - Create a Random Text GeneratorbyEric9082

AI Character Chat - Custom Code and Lorebooks

3 questions/issues regarding AI Character Chat...

  • Is the lorebook feature currently broken? While I was able to import a lorebook txt file for the main AI character, when I used /lore to view it, the lore information wasn't displayed - some JS code was shown.
     
  • Are lorebooks for additional characters supported? I have two characters, and each has a separate lorebook txt file. However, the 2nd character is completely unaware of the facts in its own lorebook.
     
  • My observations are that while each character has a custom code block, only the main AI character's block is used; e.g., oc.thread.on("MessageAdded") applies to any message from any character. Character-specific handling needs to be done within this block and code blocks from other characters are ignored. Is this a correct understanding?

Thanks!

View original on lemmy.world
perchance·Perchance - Create a Random Text GeneratorbyEric9082

AI character chat - MessageAdded event

I see that there has been an update and the memories feature is back in. Nice. However, the MessageAdded event in my custom code is now not getting executed. I added a console.log as the first line in the handler:

oc.thread.on("MessageAdded", async function({ message }) {
console.log("----------message added-------------");

And it is not getting triggered any more. It was working and I haven't changed the code. Has this changed or is this maybe a bug? Thanks!

View original on lemmy.world

You reached the end