Hi everyone… Hopefully I would get some answers! Not because I am mad because I am kind of worried.

Luckily, our dev, updated the ai helper tool, which was already ‘kind of’ great but now it’s even more amazing and I think I know why…

It’s opencode.ai. My guy literally got a monthly subscription for users or himself/herself to have better coding tool. And I am not joking that thing has either Claude Sonnet 4.5 or Gpt 5.2 similar performing (might be Kimi K3 too, I am not sure) engine running. And possibly burning tokens with my stupid questions.

Dude I am not happy nor sad, I am just worried. Opencode GO costs like 10$ with “generous” limits which I have seen AI Helper filled the ‘usage limit’ for the day (last night or before that).

But of course I have run some benchmarks and I am kind of sure it’s not GO but ZEN probably and hopefully not ‘pay as you go’ stuff. Because that sh* will be expensive as hell. Soon.

  • tlgklxzOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 hours ago

    It’s my own generator that I try to see what’s behind all of this things, like text-generation, aihelper api or the old ai helper… The old one was working with fetch method, it’s still there. You just need to take that code from index.html and carry it to your own generator, embed it give it a clean UI inside the page and let your whole main.pjs and index.html be context inside. It can edit the whole thing ‘inside’ that UI so you can copy and paste it yourself. I have no experience in HTML (bit in java) so I would use Claude or Codex to make it work.

    • Sampistola
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      7 hours ago

      Thanks, I’ll try it when I have a little time

      P.S although I would like it to be possible to put the old AI helper with a button from the new version or how can you remove the old AI helper to use it? You have to tell the person who is developing the AI ​​helper to integrate it through a button

      P.S apparently the AI ​​helper from the previous version is present but hidden in the source, how can I activate it again to be able to use it again, mmm…?

      • tlgklxzOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 hours ago

        I am not sure if I understand you…
        But from what I understand, since perchance is not our free-to-use webpage but a mere sandboxed frame, we cannot change the old / new Ai helper’s place.

        But you can get the post/fetch codes from my generator and use it somewhere else to talk/chat/get help from the old ai helper. Not easy but possible. You have to create a inner UI for it, you have to add your all javascript and html manually into that UI and send it as POST to https://perchance.org/api/aiHelper via superFetch, with a payload containing generatorName, instruction, modelText (the pjs source defining generateText/ai/superFetch imports), and a requestId. The response came back as text (sometimes JSON with modelText/outputTemplateText), and extractAiHelperAnswer parsed out the answer after the “Ai Helper Answer:” marker. So you can use that answer as source BUT it needs a lot of work.

        • Sampistola
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          It’s a bit complicated for me, but the old AI helper version is hidden, mmm… ok, I’ll give the new AI helper a chance to see if it doesn’t think of giving me an error, although I don’t know if it’s in English or Spanish, what I want to put in my projects, I’ll see.

        • Sampistola
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          6 hours ago

          mmm… I was able to isolate the old version AI helper but I don’t know if it has the same function when it was integrated into the perchance.org page

          P.S the AI ​​helper does not work since I think it separates something important from its function as an AI helper

          P.S mmm… I think I have it but there is still an error but I have no idea what crazy things can come out of this AI helper Frankenstein that I am creating