File tree Expand file tree Collapse file tree
views/setting/tabs/sections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export module MxServerOptions {
117117 commentReviewModel ?: AIModelAssignment
118118 enableSummary : boolean
119119 enableAutoGenerateSummary : boolean
120- aiSummaryTargetLanguage : string
120+ summaryTargetLanguages : string [ ]
121121 }
122122
123123 export interface ModelInfo {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ interface AIConfig {
5050 translationModel ?: AIModelAssignment
5151 enableSummary : boolean
5252 enableAutoGenerateSummary : boolean
53- aiSummaryTargetLanguage : string
53+ summaryTargetLanguages ? : string [ ]
5454 enableTranslation ?: boolean
5555 enableAutoGenerateTranslation ?: boolean
5656 translationTargetLanguages ?: string [ ]
@@ -867,15 +867,14 @@ export const AIConfigSection = defineComponent({
867867 />
868868 </ SettingsRow >
869869
870- < SettingsRow title = "摘要目标语言" >
871- < NInput
872- value = { config . value . aiSummaryTargetLanguage }
873- onUpdateValue = { ( v : string ) =>
874- updateConfig ( { aiSummaryTargetLanguage : v } )
875- }
876- placeholder = "auto 或 ISO 639-1 语言代码"
877- class = "max-w-[200px]"
878- size = "small"
870+ < SettingsRow
871+ title = "摘要目标语言"
872+ description = "自动生成摘要的目标语言列表,使用 ISO 639-1 语言代码"
873+ >
874+ < TranslationLanguagesInput
875+ value = { config . value . summaryTargetLanguages || [ ] }
876+ onUpdate = { ( v ) => updateConfig ( { summaryTargetLanguages : v } ) }
877+ disabled = { ! config . value . enableSummary }
879878 />
880879 </ SettingsRow >
881880 </ SettingsSection >
You can’t perform that action at this time.
0 commit comments