add DocsURL field to Model struct for language support documentation

This commit is contained in:
leonardotrapani
2026-02-01 13:31:53 +01:00
parent 55257db725
commit 811ca71c08
10 changed files with 79 additions and 1 deletions
+2
View File
@@ -27,6 +27,7 @@ func (p *WhisperCppProvider) IsLocal() bool {
func (p *WhisperCppProvider) Models() []Model {
allLangs := language.AllLanguageCodes()
englishOnly := []string{"en"}
docsURL := "https://github.com/openai/whisper#available-models-and-languages"
whisperModels := whisper.ListModels()
result := make([]Model, 0, len(whisperModels))
@@ -54,6 +55,7 @@ func (p *WhisperCppProvider) Models() []Model {
Size: wm.Size,
DownloadURL: whisper.GetDownloadURL(wm.ID),
},
DocsURL: docsURL,
})
}