mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 04:08:12 +08:00
Go: implement provider: Avian (#15045)
Closes #15044. Avian was listed unchecked in the Go-rewrite tracker #14736 and already had an llm_factories.json entry with 4 preconfigured chat models (deepseek-v3.2, kimi-k2.5, glm-5, minimax-m2.5), but the Go API server had no driver to route them. The Python side has supported Avian at rag/llm/chat_model.py:1220 (AvianChat) via the LiteLLM openai/ provider with default base https://api.avian.io/v1. Co-authored-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
55
conf/models/avian.json
Normal file
55
conf/models/avian.json
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"name": "avian",
|
||||
"url": {
|
||||
"default": "https://api.avian.io"
|
||||
},
|
||||
"url_suffix": {
|
||||
"chat": "v1/chat/completions",
|
||||
"models": "v1/models"
|
||||
},
|
||||
"class": "avian",
|
||||
"models": [
|
||||
{
|
||||
"name": "deepseek/deepseek-v4-pro",
|
||||
"max_tokens": 164000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "deepseek/deepseek-v4-flash",
|
||||
"max_tokens": 164000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "deepseek/deepseek-v3.2",
|
||||
"max_tokens": 164000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "moonshotai/kimi-k2.5",
|
||||
"max_tokens": 131000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "z-ai/glm-5",
|
||||
"max_tokens": 131000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "minimax/minimax-m2.5",
|
||||
"max_tokens": 1000000,
|
||||
"model_types": [
|
||||
"chat"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user