Public
LikeLTX-2-Audio
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v8View latest version
/********************************************************************
- Video‑generator bot for Poe (val.town)
- What was broken?
-
- 1️⃣ Video models must be called without streaming – the
-
Poe front‑end does not reliably surface the video URL when the -
request is streamed. The original script used `stream: true`, -
so the bot never got a usable URL. - 2️⃣ The front‑end does not render raw HTML
<video>tags. To show a -
video you have to send it as a *file attachment* in a `text` -
event (`attachments: [{url,…}]`). The old code only sent a -
markdown string, which the UI stripped out. - 3️⃣ A stray space in the
baseURLcaused an occasional connection -
error – it has been removed. - 4️⃣ Minor clean‑ups: clearer error handling, more precise typing,
-
and better logging for debugging. - This file now works with Poe’s OpenAI‑compatible API and displays the
- generated video correctly in the chat UI. ********************************************************************/
a simple poe bot
things to note:
- don't put underscores (_) in the name, it stops working