refactorings

This commit is contained in:
2025-10-05 14:04:25 +00:00
parent 57b5415e66
commit 2a5a5e2121
9 changed files with 219 additions and 404 deletions

View File

@@ -1,12 +1,12 @@
<script lang="ts">
import { Chat } from "./chat"
import { WerkChatSession } from "@kontextwerk/web-sdk"
import InputRow from "./InputRow.svelte"
import Messages from "./Messages.svelte"
function generateUniqueId() {
return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15)
}
let chat = $derived(
new Chat(generateUniqueId(), {
new WerkChatSession(generateUniqueId(), {
url: "https://2schat-server.robins-spielwiese.de/api/v1/chatbot/stream",
headers: {
"Content-Type": "application/json",