Add extra field to model instance (#14203)

### What problem does this PR solve?

Now each model support region with different URL

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

---------

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-04-20 15:31:12 +08:00
committed by GitHub
parent 939933649a
commit af2ed416a7
22 changed files with 398 additions and 550 deletions

View File

@@ -1,7 +1,8 @@
{
"name": "OpenAI",
"tags": "LLM,TEXT EMBEDDING,TTS,TEXT RE-RANK,SPEECH2TEXT,MODERATION",
"url": "https://api.openai.com/v1",
"url": {
"default": "https://api.openai.com/v1"
},
"url_suffix": {
"chat": "chat/completions"
},
@@ -10,8 +11,8 @@
"name": "gpt-5.2-pro",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -19,8 +20,8 @@
"name": "gpt-5.2",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -28,8 +29,8 @@
"name": "gpt-5.1",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -37,8 +38,8 @@
"name": "gpt-5.1-chat-latest",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -46,8 +47,8 @@
"name": "gpt-5",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -55,8 +56,8 @@
"name": "gpt-5-mini",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -64,8 +65,8 @@
"name": "gpt-5-nano",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -73,8 +74,8 @@
"name": "gpt-5-chat-latest",
"max_tokens": 400000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -82,8 +83,8 @@
"name": "gpt-4.1",
"max_tokens": 1047576,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -91,8 +92,8 @@
"name": "gpt-4.1-mini",
"max_tokens": 1047576,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -100,8 +101,8 @@
"name": "gpt-4.1-nano",
"max_tokens": 1047576,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -109,7 +110,7 @@
"name": "gpt-4.5-preview",
"max_tokens": 128000,
"model_types": [
"llm"
"chat"
],
"features": {}
},
@@ -117,8 +118,8 @@
"name": "o3",
"max_tokens": 200000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -126,8 +127,8 @@
"name": "o4-mini",
"max_tokens": 200000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -135,8 +136,8 @@
"name": "o4-mini-high",
"max_tokens": 200000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -144,8 +145,8 @@
"name": "gpt-4o-mini",
"max_tokens": 128000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -153,8 +154,8 @@
"name": "gpt-4o",
"max_tokens": 128000,
"model_types": [
"llm",
"vlm"
"chat",
"vision"
],
"features": {}
},
@@ -162,7 +163,7 @@
"name": "gpt-3.5-turbo",
"max_tokens": 4096,
"model_types": [
"llm"
"chat"
],
"features": {}
},
@@ -170,7 +171,7 @@
"name": "gpt-3.5-turbo-16k-0613",
"max_tokens": 16385,
"model_types": [
"llm"
"chat"
],
"features": {}
},
@@ -202,7 +203,7 @@
"name": "whisper-1",
"max_tokens": 26214400,
"model_types": [
"speech2text"
"asr"
],
"features": {}
},
@@ -210,7 +211,7 @@
"name": "gpt-4",
"max_tokens": 8191,
"model_types": [
"llm"
"chat"
],
"features": {}
},
@@ -218,7 +219,7 @@
"name": "gpt-4-turbo",
"max_tokens": 8191,
"model_types": [
"llm"
"chat"
],
"features": {}
},
@@ -226,7 +227,7 @@
"name": "gpt-4-32k",
"max_tokens": 32768,
"model_types": [
"llm"
"chat"
],
"features": {}
},

View File

@@ -1,7 +1,8 @@
{
"name": "xAI",
"tags": "LLM",
"url": "https://api.x.ai/v1",
"url": {
"default": "https://api.x.ai/v1"
},
"url_suffix": {
"chat": "chat/completions"
},
@@ -9,44 +10,38 @@
{
"name": "grok-4",
"max_tokens": 256000,
"model_types": ["llm"],
"model_types": ["chat"],
"features": {}
},
{
"name": "grok-3",
"max_tokens": 131072,
"model_types": ["llm"],
"model_types": ["chat"],
"features": {}
},
{
"name": "grok-3-fast",
"max_tokens": 131072,
"model_types": ["llm"],
"model_types": ["chat"],
"features": {}
},
{
"name": "grok-3-mini",
"max_tokens": 131072,
"model_types": ["llm"],
"model_types": ["chat"],
"features": {}
},
{
"name": "grok-3-mini-mini-fast",
"max_tokens": 131072,
"model_types": ["llm"],
"model_types": ["chat"],
"features": {}
},
{
"name": "grok-2-vision",
"max_tokens": 32768,
"model_types": ["vlm"],
"features": {
"multimodal": {
"enabled": true,
"input_modalities": ["image"],
"output_modalities": ["text"]
}
}
"model_types": ["vision"],
"features": {}
}
]
}

View File

@@ -1,7 +1,8 @@
{
"name": "ZHIPU-AI",
"tags": "LLM,TEXT EMBEDDING,SPEECH2TEXT,MODERATION",
"url": "https://open.bigmodel.cn/api/paas/v4",
"url": {
"default": "https://open.bigmodel.cn/api/paas/v4"
},
"url_suffix": {
"chat": "chat/completions",
"async_chat": "async/chat/completions",
@@ -31,7 +32,7 @@
"max_tokens": 128000,
"model_types": [
"chat",
"image2text"
"vision"
],
"features": {}
},
@@ -71,7 +72,7 @@
"name": "glm-4.5v",
"max_tokens": 64000,
"model_types": [
"image2text"
"vision"
],
"features": {}
},
@@ -151,7 +152,7 @@
"name": "glm-4v",
"max_tokens": 2000,
"model_types": [
"image2text"
"vision"
],
"features": {}
},
@@ -183,7 +184,28 @@
"name": "glm-asr",
"max_tokens": 4096,
"model_types": [
"speech2text"
"asr"
],
"features": {}
},
{
"name": "glm-tts",
"model_types": [
"tts"
],
"features": {}
},
{
"name": "glm-ocr",
"model_types": [
"ocr"
],
"features": {}
},
{
"name": "glm-rerank",
"model_types": [
"rerank"
],
"features": {}
}