fix(go-models): validate URL suffix config keys (#15734)

## Summary

Fixes typoed model-provider URL suffix keys and adds strict nested
decoding so future URL suffix config mistakes fail during provider
loading instead of being silently ignored.
This commit is contained in:
oktofeesh
2026-06-08 04:29:36 -07:00
committed by GitHub
parent 8dc7f1d95e
commit 25df0a6725
4 changed files with 95 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
"url_suffix": {
"chat": "v2/chat",
"models": "v1/models",
"embeddings": "v2/embed",
"embedding": "v2/embed",
"rerank": "v2/rerank",
"asr": "audio/transcriptions"
},

View File

@@ -7,7 +7,7 @@
"chat": "chat/completions",
"models": "models",
"tts": "tts",
"ast": "stt"
"asr": "stt"
},
"class": "grok",
"models": [
@@ -61,4 +61,3 @@
}
]
}