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
+4
View File
@@ -27,6 +27,7 @@ func (p *GroqProvider) IsLocal() bool {
func (p *GroqProvider) Models() []Model {
allLangs := language.AllLanguageCodes()
docsURL := "https://console.groq.com/docs/speech-to-text#supported-languages"
return []Model{
// transcription models
@@ -40,6 +41,7 @@ func (p *GroqProvider) Models() []Model {
AdapterType: "openai",
SupportedLanguages: allLangs,
Endpoint: &EndpointConfig{BaseURL: "https://api.groq.com/openai", Path: "/v1/audio/transcriptions"},
DocsURL: docsURL,
},
{
ID: "whisper-large-v3-turbo",
@@ -51,6 +53,7 @@ func (p *GroqProvider) Models() []Model {
AdapterType: "openai",
SupportedLanguages: allLangs,
Endpoint: &EndpointConfig{BaseURL: "https://api.groq.com/openai", Path: "/v1/audio/transcriptions"},
DocsURL: docsURL,
},
{
ID: "distil-whisper-large-v3-en",
@@ -62,6 +65,7 @@ func (p *GroqProvider) Models() []Model {
AdapterType: "openai",
SupportedLanguages: []string{"en"},
Endpoint: &EndpointConfig{BaseURL: "https://api.groq.com/openai", Path: "/v1/audio/transcriptions"},
DocsURL: docsURL,
},
// LLM models
{