From 9d551c90641db99cd4a3b340501979f8d06bb2ce Mon Sep 17 00:00:00 2001 From: PleahMaCaka Date: Mon, 30 Oct 2023 12:22:41 +0900 Subject: [PATCH] style: reformat some codes --- src/lib/client/Client.ts | 7 +++---- src/lib/components/Sidebar.svelte | 2 +- src/lib/components/sidebar/SideButton.svelte | 4 +++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/lib/client/Client.ts b/src/lib/client/Client.ts index 87b3727..493fe2f 100644 --- a/src/lib/client/Client.ts +++ b/src/lib/client/Client.ts @@ -6,6 +6,9 @@ import { get } from "svelte/store" export class Client { private _url: string = get(stateStore).url.model + public llm = new LLM({ uri: this._url }) + + constructor() {} public updateUrl(): void { this._url = get(stateStore).url.model @@ -14,10 +17,6 @@ export class Client { }) } - public llm = new LLM({ uri: this._url }) - - constructor() {} - public async appendHistory(author: Author, msg: string) { stateStore.update((state) => { return { diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 8f04e31..2aec0e1 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -14,8 +14,8 @@