RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: update base_url and model list for provider tencent Hunyuan (#17304)
Lynnc3e03f5c0609
diff --git a/conf/models/hunyuan.json b/conf/models/hunyuan.jsonindex 04fd0602d1..db4f3f61fb 100644--- a/conf/models/hunyuan.json+++ b/conf/models/hunyuan.json@@ -1,7 +1,10 @@{"name": "Tencent Hunyuan","url": {- "default": "https://api.hunyuan.cloud.tencent.com/v1"+ "default": "https://tokenhub.tencentmaas.com/v1",+ "default-backup": "https://tokenhub.tencentmaas.cn/v1",+ "intl": "https://tokenhub-intl.tencentmaas.com/v1",+ "intl-backup": "https://tokenhub-intl.tencentmaas.cn/v1"},"url_suffix": {"chat": "chat/completions",@@ -11,39 +14,179 @@"class": "hunyuan","models": [{- "name": "hunyuan-pro",+ "name": "hy3",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "hy3-preview",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "kimi-k3",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "kimi-k2.7-code-highspeed",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "kimi-k2.7-code",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "glm-5.2",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "minimax-m3",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "deepseek-v4-flash-202605",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "deepseek-v4-pro-202606",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "deepseek-v4-pro",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "deepseek-v4-flash",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "hy-mt2-pro",+ "max_tokens": 8192,+ "model_types": ["chat"]+ },+ {+ "name": "hy-mt2-plus",+ "max_tokens": 8192,+ "model_types": ["chat"]+ },+ {+ "name": "hy-mt2-lite",+ "max_tokens": 8192,+ "model_types": ["chat"]+ },+ {+ "name": "hy-role",+ "max_tokens": 32768,+ "model_types": ["chat"]+ },+ {+ "name": "hunyuan-role-latest",+ "max_tokens": 32768,+ "model_types": ["chat"]+ },+ {+ "name": "qwen3.5-flash",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "qwen3.5-plus",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "glm-5.1",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "glm-5",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "glm-5-turbo",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "kimi-k2.6",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "kimi-k2.5",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "minimax-m2.7",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "minimax-m2.5",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "deepseek-v3.2",+ "max_tokens": 131072,+ "model_types": ["chat"]+ },+ {+ "name": "glm-5v-turbo",+ "max_tokens": 131072,+ "model_types": ["chat", "vision"]+ },+ {+ "name": "hy-vision-2.0-instruct","max_tokens": 32768,- "model_types": [- "chat"- ]+ "model_types": ["chat", "vision"]},{- "name": "hunyuan-standard",+ "name": "youtu-vita","max_tokens": 32768,- "model_types": [- "chat"- ]+ "model_types": ["chat", "vision"]+ },+ {+ "name": "hunyuan-t1-vision-20250916",+ "max_tokens": 32768,+ "model_types": ["chat", "vision"]+ },+ {+ "name": "hunyuan-turbos-vision-video-20250728",+ "max_tokens": 32768,+ "model_types": ["chat", "vision"]+ },+ {+ "name": "kinfra-text-embedding-0.6b",+ "max_tokens": 8192,+ "model_types": ["embedding"]},{- "name": "hunyuan-standard-256K",- "max_tokens": 262144,- "model_types": [- "chat"- ]+ "name": "kinfra-text-embedding-4b",+ "max_tokens": 8192,+ "model_types": ["embedding"]},{- "name": "hunyuan-lite",- "max_tokens": 262144,- "model_types": [- "chat"- ]+ "name": "kinfra-vl-embedding-2b",+ "max_tokens": 8192,+ "model_types": ["embedding"]},{- "name": "hunyuan-embedding",- "max_tokens": 16384,- "model_types": [- "embedding"- ]+ "name": "kinfra-vl-embedding-8b",+ "max_tokens": 8192,+ "model_types": ["embedding"]}]}diff --git a/internal/service/model_service.go b/internal/service/model_service.goindex 8ca1eb70e8..bb54e6fa1e 100644--- a/internal/service/model_service.go+++ b/internal/service/model_service.go@@ -888,13 +888,9 @@ func (m *ModelProviderService) CheckConnection(ctx context.Context, providerName}apiConfig := &modelModule.APIConfig{- ApiKey: &apiKey,- Region: ®ion,- }-- err := driver.CheckConnection(ctx, apiConfig)- if err != nil {- return common.CodeServerError, err+ ApiKey: &apiKey,+ Region: ®ion,+ BaseURL: &baseURL,}// Mirror Python verify_api_key: verify each model by making a real