@absolutejs/ai 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/index.js +3 -2
- package/dist/ai/index.js.map +3 -3
- package/package.json +199 -199
package/dist/ai/index.js
CHANGED
|
@@ -3489,6 +3489,7 @@ var openrouterMessages = (config2) => {
|
|
|
3489
3489
|
|
|
3490
3490
|
// src/plugins/aiChat.ts
|
|
3491
3491
|
import { Elysia } from "elysia";
|
|
3492
|
+
import { websocket } from "elysia/websocket";
|
|
3492
3493
|
|
|
3493
3494
|
// src/ai/memoryStore.ts
|
|
3494
3495
|
var createMemoryStore = () => {
|
|
@@ -4869,7 +4870,7 @@ var aiChat = (config2) => {
|
|
|
4869
4870
|
return new Response(html || '<div class="empty">No conversations</div>', { headers: { "Content-Type": "text/html" } });
|
|
4870
4871
|
});
|
|
4871
4872
|
};
|
|
4872
|
-
const app = new Elysia().ws(path, {
|
|
4873
|
+
const app = new Elysia().use(websocket()).ws(path, {
|
|
4873
4874
|
message: async (ws, raw) => {
|
|
4874
4875
|
const msg = parseAIMessage(raw);
|
|
4875
4876
|
if (!msg) {
|
|
@@ -7668,5 +7669,5 @@ export {
|
|
|
7668
7669
|
BUILTIN_UI_CARDS
|
|
7669
7670
|
};
|
|
7670
7671
|
|
|
7671
|
-
//# debugId=
|
|
7672
|
+
//# debugId=1D47D14F189FCCCF64756E2164756E21
|
|
7672
7673
|
//# sourceMappingURL=index.js.map
|