Refactor AI config to step-based wizard with DeepSeek defaults

This commit is contained in:
2026-07-24 10:01:51 +08:00
parent 065dfd9a38
commit 150e6ecff0
8 changed files with 568 additions and 184 deletions

View File

@@ -24,7 +24,7 @@ export class AiConfig {
@Column({ name: 'singleton_key', type: 'varchar', length: 20, default: SINGLETON_KEY })
singletonKey: string;
@Column({ type: 'varchar', length: 50, default: AiProvider.OPENAI })
@Column({ type: 'varchar', length: 50, default: AiProvider.DEEPSEEK })
provider: AiProvider;
@Column({ name: 'base_url', type: 'varchar', length: 500, nullable: true })
@@ -45,7 +45,7 @@ export class AiConfig {
@Column({ name: 'default_model', type: 'varchar', length: 100, nullable: true })
defaultModel: string | null;
@Column({ type: 'boolean', default: false })
@Column({ type: 'boolean', default: true })
enabled: boolean;
@Column({ name: 'timeout_ms', type: 'int', default: 30000 })