aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/types/index.ts
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-16 14:16:42 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-16 14:18:21 +0800
commitd0e7da7ec7745be3d34efe3949c0592f6723136a (patch)
tree78fcd73118f5f001d70670cb30b87d973ab7cee4 /ui/src/types/index.ts
parentf1eaa8fcc90c3fec0bcedc1ce060f1dcfea5bcd6 (diff)
downloadDropOut-d0e7da7ec7745be3d34efe3949c0592f6723136a.tar.gz
DropOut-d0e7da7ec7745be3d34efe3949c0592f6723136a.zip
feat: implement assistant state management and messaging functionality
Added a new module for managing the assistant's state, including message handling, health checks, and streaming responses. Introduced interfaces for message structure and generation statistics. Enhanced the logs state by removing unnecessary listener setup during initialization. Updated the types to include assistant configuration options.
Diffstat (limited to 'ui/src/types/index.ts')
-rw-r--r--ui/src/types/index.ts28
1 files changed, 27 insertions, 1 deletions
diff --git a/ui/src/types/index.ts b/ui/src/types/index.ts
index 83e7f9e..6471869 100644
--- a/ui/src/types/index.ts
+++ b/ui/src/types/index.ts
@@ -1,4 +1,4 @@
-export type ViewType = "home" | "versions" | "settings";
+export type ViewType = "home" | "versions" | "settings" | "guide";
export interface Version {
id: string;
@@ -26,6 +26,31 @@ export interface DeviceCodeResponse {
message?: string;
}
+export interface AssistantConfig {
+ enabled: boolean;
+ llm_provider: "ollama" | "openai";
+ // Ollama settings
+ ollama_endpoint: string;
+ ollama_model: string;
+ // OpenAI settings
+ openai_api_key?: string;
+ openai_endpoint: string;
+ openai_model: string;
+ // Common settings
+ system_prompt: string;
+ response_language: string;
+ // TTS settings
+ tts_enabled: boolean;
+ tts_provider: string;
+}
+
+export interface ModelInfo {
+ id: string;
+ name: string;
+ size?: string;
+ details?: string;
+}
+
export interface LauncherConfig {
min_memory: number;
max_memory: number;
@@ -40,6 +65,7 @@ export interface LauncherConfig {
theme: string;
log_upload_service: "paste.rs" | "pastebin.com";
pastebin_api_key?: string;
+ assistant: AssistantConfig;
}
export interface JavaInstallation {