mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 08:56:42 +08:00
### What problem does this PR solve? 1. Supports stream and non-stream chat 2. Supports think and non-think chat 3. List supported models from DeepSeek service. (This command can be used to verify the API validity) ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
241 lines
4.1 KiB
JSON
241 lines
4.1 KiB
JSON
{
|
|
"name": "ZHIPU-AI",
|
|
"url": {
|
|
"default": "https://open.bigmodel.cn/api/paas/v4"
|
|
},
|
|
"url_suffix": {
|
|
"chat": "chat/completions",
|
|
"async_chat": "async/chat/completions",
|
|
"async_result": "async-result",
|
|
"embedding": "embedding",
|
|
"rerank": "rerank"
|
|
},
|
|
"models": [
|
|
{
|
|
"name": "glm-4.7",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.6v-Flash",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat",
|
|
"vision"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5-x",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5-air",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5-airx",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5-flash",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4.5v",
|
|
"max_tokens": 64000,
|
|
"model_types": [
|
|
"vision"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-plus",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-0520",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-airx",
|
|
"max_tokens": 8000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-air",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-flash",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-flashx",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-long",
|
|
"max_tokens": 1000000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-3-turbo",
|
|
"max_tokens": 128000,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4v",
|
|
"max_tokens": 2000,
|
|
"model_types": [
|
|
"vision"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-4-9b",
|
|
"max_tokens": 8192,
|
|
"model_types": [
|
|
"chat"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "embedding-2",
|
|
"max_tokens": 512,
|
|
"model_types": [
|
|
"embedding"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "embedding-3",
|
|
"max_tokens": 512,
|
|
"model_types": [
|
|
"embedding"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-asr",
|
|
"max_tokens": 4096,
|
|
"model_types": [
|
|
"asr"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-tts",
|
|
"model_types": [
|
|
"tts"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-ocr",
|
|
"model_types": [
|
|
"ocr"
|
|
],
|
|
"features": {}
|
|
},
|
|
{
|
|
"name": "glm-rerank",
|
|
"model_types": [
|
|
"rerank"
|
|
],
|
|
"features": {}
|
|
}
|
|
],
|
|
"features": {
|
|
"thinking": {
|
|
"default_value": true,
|
|
"supported_models": [
|
|
"glm-5.1",
|
|
"glm-5",
|
|
"glm-5v-turbo",
|
|
"glm-4.7",
|
|
"glm-4.6",
|
|
"glm-4.6v",
|
|
"glm-4.5",
|
|
"glm-4.5v"
|
|
]
|
|
},
|
|
"clear_thinking": {
|
|
"default_value": true,
|
|
"supported_models": [
|
|
"glm-5.1",
|
|
"glm-5",
|
|
"glm-5v-turbo",
|
|
"glm-4.7",
|
|
"glm-4.6",
|
|
"glm-4.6v",
|
|
"glm-4.5",
|
|
"glm-4.5v"
|
|
]
|
|
}
|
|
}
|
|
} |