Refactor AI chat: streaming, tool calls, UI polish

This commit is contained in:
2026-07-24 16:27:50 +08:00
parent e605586fc9
commit 8656394b9b
55 changed files with 2774 additions and 460 deletions

View File

@@ -42,6 +42,10 @@ export class SaveAiConfigDto {
@IsBoolean()
enabled?: boolean;
@IsOptional()
@IsBoolean()
supportsVision?: boolean;
@IsOptional()
@IsInt()
@Min(1000)
@@ -85,6 +89,7 @@ export interface AiConfigResponseDto {
keySource: 'database' | 'environment' | 'none';
defaultModel: string | null;
enabled: boolean;
supportsVision: boolean;
timeoutMs: number;
verified: boolean;
lastTestedAt: string | null;
@@ -111,6 +116,7 @@ export interface AiRuntimeConfig {
defaultModel: string;
timeoutMs: number;
enabled: boolean;
supportsVision: boolean;
}
/** DTO for POST /api/ai/config/models — fetch available model list from provider */