This commit is contained in:
2025-10-03 07:26:22 +00:00
parent 7455c2fd1b
commit c2be654e2f
45 changed files with 650 additions and 3517 deletions

View File

@@ -0,0 +1,30 @@
<script lang="ts">
import { Chat } from "./chat"
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(), {
url: "https://2schat-server.robins-spielwiese.de/api/v1/chatbot/stream",
headers: {
"Content-Type": "application/json",
},
})
)
</script>
<div class="chat-wrapper">
<Messages {chat} />
<InputRow {chat} />
</div>
<style lang="less">
.chat-wrapper {
min-height: 400px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
</style>