Feature/add new models for token pony and bug fix for use llm (#10823)

new models for token pony and bug fix for use llm

Co-authored-by: huangzl <huangzl@shinemo.com>
This commit is contained in:
纷繁下的无奈
2025-10-28 10:04:41 +08:00
committed by GitHub
parent 766d900a41
commit 84d1ffe44c
2 changed files with 51 additions and 7 deletions

View File

@ -227,8 +227,8 @@
"llm": [ "llm": [
{ {
"llm_name": "qwen3-8b", "llm_name": "qwen3-8b",
"tags": "LLM,CHAT,131k", "tags": "LLM,CHAT,128k",
"max_tokens": 131000, "max_tokens": 128000,
"model_type": "chat", "model_type": "chat",
"is_tools": true "is_tools": true
}, },
@ -241,15 +241,15 @@
}, },
{ {
"llm_name": "qwen3-32b", "llm_name": "qwen3-32b",
"tags": "LLM,CHAT,131k", "tags": "LLM,CHAT,128k",
"max_tokens": 131000, "max_tokens": 128000,
"model_type": "chat", "model_type": "chat",
"is_tools": true "is_tools": true
}, },
{ {
"llm_name": "kimi-k2-instruct", "llm_name": "kimi-k2-instruct-0905",
"tags": "LLM,CHAT,128K", "tags": "LLM,CHAT,256K",
"max_tokens": 128000, "max_tokens": 256000,
"model_type": "chat", "model_type": "chat",
"is_tools": true "is_tools": true
}, },
@ -280,6 +280,48 @@
"max_tokens": 128000, "max_tokens": 128000,
"model_type": "chat", "model_type": "chat",
"is_tools": true "is_tools": true
},
{
"llm_name": "hunyuan-a13b-instruct",
"tags": "LLM,CHAT,256k",
"max_tokens": 256000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "qwen3-next-80b-a3b-instruct",
"tags": "LLM,CHAT,1024k",
"max_tokens": 1024000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "deepseek-v3.2-exp",
"tags": "LLM,CHAT,128k",
"max_tokens": 128000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "deepseek-v3.1-terminus",
"tags": "LLM,CHAT,128k",
"max_tokens": 128000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "qwen3-vl-235b-a22b-instruct",
"tags": "LLM,CHAT,262k",
"max_tokens": 262000,
"model_type": "chat",
"is_tools": true
},
{
"llm_name": "qwen3-vl-30b-a3b-instruct",
"tags": "LLM,CHAT,262k",
"max_tokens": 262000,
"model_type": "chat",
"is_tools": true
} }
] ]
}, },

View File

@ -1363,6 +1363,8 @@ class TokenPonyChat(Base):
def __init__(self, key, model_name, base_url="https://ragflow.vip-api.tokenpony.cn/v1", **kwargs): def __init__(self, key, model_name, base_url="https://ragflow.vip-api.tokenpony.cn/v1", **kwargs):
if not base_url: if not base_url:
base_url = "https://ragflow.vip-api.tokenpony.cn/v1" base_url = "https://ragflow.vip-api.tokenpony.cn/v1"
super().__init__(key, model_name, base_url, **kwargs)
class DeerAPIChat(Base): class DeerAPIChat(Base):
_FACTORY_NAME = "DeerAPI" _FACTORY_NAME = "DeerAPI"