refactor: consolidate OpenAI adapter to accept EndpointConfig

- OpenAIAdapter now accepts EndpointConfig for custom endpoints
- added language code conversion via ToProviderFormat
- backward-compatible NewOpenAIAdapterFromConfig for migration
- works with OpenAI, Groq, and Mistral endpoints
This commit is contained in:
leonardotrapani
2026-02-01 00:52:48 +01:00
parent 80b263a682
commit 2325864446
5 changed files with 177 additions and 17 deletions
+1 -1
View File
@@ -313,7 +313,7 @@
"Transcribe() works with Groq endpoint (different BaseURL)",
"Typecheck passes"
],
"passes": false
"passes": true
},
{
"title": "Remove redundant Groq and Mistral transcription adapters",