Files
ragflow/conf/models/hunyuan.json
Haruko386 69f301b84a Go: implement embed for Tencent Hunyuan (#15207)
### What problem does this PR solve?

Implement embed for Tencent Hunyuan

**Verified from CLI**
```
RAGFlow(user)> embed text 'what is rag' 'who are you' with 'hunyuan-embedding@test1@hunyuan' dimension 16;
+-----------+-------+
| dimension | index |
+-----------+-------+
| 1024      | 0     |
| 1024      | 1     |
+-----------+-------+
```

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Refactoring
2026-05-25 16:04:17 +08:00

50 lines
851 B
JSON

{
"name": "HunYuan",
"url": {
"default": "https://api.hunyuan.cloud.tencent.com/v1"
},
"url_suffix": {
"chat": "chat/completions",
"models": "models",
"embedding": "embeddings"
},
"class": "hunyuan",
"models": [
{
"name": "hunyuan-pro",
"max_tokens": 32768,
"model_types": [
"chat"
]
},
{
"name": "hunyuan-standard",
"max_tokens": 32768,
"model_types": [
"chat"
]
},
{
"name": "hunyuan-standard-256K",
"max_tokens": 262144,
"model_types": [
"chat"
]
},
{
"name": "hunyuan-lite",
"max_tokens": 262144,
"model_types": [
"chat"
]
},
{
"name": "hunyuan-embedding",
"max_tokens": 16384,
"model_types": [
"embedding"
]
}
]
}