mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-22 16:36:47 +08:00
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:
@@ -6,7 +6,7 @@
|
||||
"url_suffix": {
|
||||
"chat": "v2/chat",
|
||||
"models": "v1/models",
|
||||
"embeddings": "v2/embed",
|
||||
"embedding": "v2/embed",
|
||||
"rerank": "v2/rerank",
|
||||
"asr": "audio/transcriptions"
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"chat": "chat/completions",
|
||||
"models": "models",
|
||||
"tts": "tts",
|
||||
"ast": "stt"
|
||||
"asr": "stt"
|
||||
},
|
||||
"class": "grok",
|
||||
"models": [
|
||||
@@ -61,4 +61,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user