modify docSum output (#55)

Signed-off-by: Yue, Wenjiao <wenjiao.yue@intel.com>
This commit is contained in:
WenjiaoYue
2024-04-08 17:06:17 +08:00
committed by GitHub
parent 95216234a7
commit 18e2e6f6a5
5 changed files with 8 additions and 13 deletions

1
DocSum/ui/.env Normal file
View File

@@ -0,0 +1 @@
BASIC_URL = 'http://x.x.x.x:yyyy'

12
DocSum/ui/.gitignore vendored
View File

@@ -1,11 +1,5 @@
.DS_Store
node_modules
*/node_modules
/build
/dist
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
*/.svelte-kit

View File

@@ -31,8 +31,8 @@
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.16",
"flowbite": "^2.3.0",
"flowbite-svelte": "^0.44.24",
"flowbite-svelte-icons": "^1.4.5",
"flowbite-svelte": "^0.38.5",
"flowbite-svelte-icons": "^1.4.0",
"postcss": "^8.4.32",
"postcss-load-config": "^5.0.2",
"publint": "^0.1.9",

View File

@@ -17,7 +17,7 @@
<script lang="ts">
import { Button, Helper, Input, Label, Modal } from "flowbite-svelte";
import { ExclamationCircleOutline } from "flowbite-svelte-icons";
import DropFile from "./DropFile.svelte";
import DropFile from "./dropFile.svelte";
import SpinLoading from "./assets/spinLoading.svelte";
import { kb_id, loading } from "./shared/Store.js";
import { Textarea } from "flowbite-svelte";

View File

@@ -50,7 +50,7 @@
logs.forEach((log: { op: string; path: string; value: any }) => {
if (log.op === "add") {
if (
log.path.endsWith("/streamed_output/-") && typeof log.value === "string"
log.value !== "</s>" && log.path.endsWith("/streamed_output/-") && log.path.length > "/streamed_output/-".length
) {
messages += log.value;
scrollToBottom(scrollToDiv)