feat(ai): add configurable max_tokens in shared model settings

This commit is contained in:
Jason
2026-04-16 23:04:09 +08:00
parent e049bfd606
commit 111a1961bf
4 changed files with 71 additions and 10 deletions

View File

@@ -77,6 +77,7 @@ interface ConfigSchema {
aiModelApiBaseUrl: string
aiModelApiKey: string
aiModelApiModel: string
aiModelApiMaxTokens: number
aiInsightEnabled: boolean
aiInsightApiBaseUrl: string
aiInsightApiKey: string
@@ -194,6 +195,7 @@ export class ConfigService {
aiModelApiBaseUrl: '',
aiModelApiKey: '',
aiModelApiModel: 'gpt-4o-mini',
aiModelApiMaxTokens: 200,
aiInsightEnabled: false,
aiInsightApiBaseUrl: '',
aiInsightApiKey: '',