mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-03 01:01:56 +08:00
## What problem does this PR solve? Closes #15021. The Go model-provider layer had no support for **Azure OpenAI**. Azure OpenAI is *not* a drop-in base-URL swap of the OpenAI driver — it differs in authentication, endpoint structure, and how models are listed — so it needs its own `ModelDriver` implementation. ## Type of change - [x] New feature (non-breaking change which adds functionality) Co-authored-by: Jin Hai <haijin.chn@gmail.com>
10 lines
161 B
JSON
10 lines
161 B
JSON
{
|
|
"name": "Azure-OpenAI",
|
|
"url_suffix": {
|
|
"chat": "chat/completions",
|
|
"embedding": "embeddings",
|
|
"models": "deployments"
|
|
},
|
|
"class": "gpt"
|
|
}
|