refactorings
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user