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
Feat: add LLM provider PPIO (#5013)
saikidevd2929e432e2b
diff --git a/conf/llm_factories.json b/conf/llm_factories.jsonindex 195dfb1379..5543bb3315 100644--- a/conf/llm_factories.json+++ b/conf/llm_factories.json@@ -2789,6 +2789,128 @@}]},+ {+ "name": "PPIO",+ "logo": "",+ "tags": "LLM",+ "status": "1",+ "llm": [+ {+ "llm_name": "deepseek/deepseek-r1/community",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-v3/community",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-r1",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-v3",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-r1-distill-llama-70b",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-r1-distill-qwen-32b",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-r1-distill-qwen-14b",+ "tags": "LLM,CHAT,64k",+ "max_tokens": 64000,+ "model_type": "chat"+ },+ {+ "llm_name": "deepseek/deepseek-r1-distill-llama-8b",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32000,+ "model_type": "chat"+ },+ {+ "llm_name": "qwen/qwen-2.5-72b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "qwen/qwen-2-vl-72b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "meta-llama/llama-3.2-3b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "qwen/qwen2.5-32b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32000,+ "model_type": "chat"+ },+ {+ "llm_name": "baichuan/baichuan2-13b-chat",+ "tags": "LLM,CHAT,14k",+ "max_tokens": 14336,+ "model_type": "chat"+ },+ {+ "llm_name": "meta-llama/llama-3.1-70b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "meta-llama/llama-3.1-8b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "01-ai/yi-1.5-34b-chat",+ "tags": "LLM,CHAT,16k",+ "max_tokens": 16384,+ "model_type": "chat"+ },+ {+ "llm_name": "01-ai/yi-1.5-9b-chat",+ "tags": "LLM,CHAT,16k",+ "max_tokens": 16384,+ "model_type": "chat"+ },+ {+ "llm_name": "thudm/glm-4-9b-chat",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ },+ {+ "llm_name": "qwen/qwen-2-7b-instruct",+ "tags": "LLM,CHAT,32k",+ "max_tokens": 32768,+ "model_type": "chat"+ }+ ]+ },{"name": "01.AI","logo": "",diff --git a/docs/references/supported_models.mdx b/docs/references/supported_models.mdxindex fe5ea53db1..98511517ca 100644--- a/docs/references/supported_models.mdx+++ b/docs/references/supported_models.mdx@@ -44,6 +44,7 @@ A complete list of models supported by RAGFlow, which will continue to expand.| OpenRouter | :heavy_check_mark: | | | :heavy_check_mark: | | || PerfXCloud | :heavy_check_mark: | :heavy_check_mark: | | | | || Replicate | :heavy_check_mark: | :heavy_check_mark: | | | | |+| PPIO | :heavy_check_mark: | | | | | || SILICONFLOW | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | || StepFun | :heavy_check_mark: | | | | | || Tencent Hunyuan | :heavy_check_mark: | | | | | |diff --git a/docs/release_notes.md b/docs/release_notes.mdindex 10053547cd..0c66a82439 100644--- a/docs/release_notes.md+++ b/docs/release_notes.md@@ -269,7 +269,7 @@ Released on August 26, 2024.- Incorporates monitoring for the task executor.- Introduces Agent tools **GitHub**, **DeepL**, **BaiduFanyi**, **QWeather**, and **GoogleScholar**.- Supports chunking of EML files.-- Supports more LLMs or model services: **GPT-4o-mini**, **PerfXCloud**, **TogetherAI**, **Upstage**, **Novita.AI**, **01.AI**, **SiliconFlow**, **XunFei Spark**, **Baidu Yiyan**, and **Tencent Hunyuan**.+- Supports more LLMs or model services: **GPT-4o-mini**, **PerfXCloud**, **TogetherAI**, **Upstage**, **Novita.AI**, **01.AI**, **SiliconFlow**, **PPIO**, **XunFei Spark**, **Baidu Yiyan**, and **Tencent Hunyuan**.## v0.9.0diff --git a/rag/llm/__init__.py b/rag/llm/__init__.pyindex 6687e9d3f0..bb3ba64eef 100644--- a/rag/llm/__init__.py+++ b/rag/llm/__init__.py@@ -75,6 +75,7 @@ from .chat_model import (UpstageChat,NovitaAIChat,SILICONFLOWChat,+ PPIOChat,YiChat,ReplicateChat,HunyuanChat,@@ -220,6 +221,7 @@ ChatModel = {"Upstage": UpstageChat,"novita.ai": NovitaAIChat,"SILICONFLOW": SILICONFLOWChat,+ "PPIO": PPIOChat,"01.AI": YiChat,"Replicate": ReplicateChat,"Tencent Hunyuan": HunyuanChat,diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex 83a4fc37e6..4d843c85fa 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -952,6 +952,13 @@ class OpenAI_APIChat(Base):super().__init__(key, model_name, base_url)+class PPIOChat(Base):+ def __init__(self, key, model_name, base_url="https://api.ppinfra.com/v3/openai"):+ if not base_url:+ base_url = "https://api.ppinfra.com/v3/openai"+ super().__init__(key, model_name, base_url)++class CoHereChat(Base):def __init__(self, key, model_name, base_url=""):from cohere import Clientdiff --git a/web/src/assets/svg/llm/ppio.svg b/web/src/assets/svg/llm/ppio.svgnew file mode 100755index 0000000000..49ab9a1f6c--- /dev/null+++ b/web/src/assets/svg/llm/ppio.svg@@ -0,0 +1,3 @@+<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M29.7888 0.215881C13.3449 0.215881 0 13.5422 0 29.986C0 38.0916 3.24782 45.4527 8.51506 50.8223V30.0139C8.51506 24.3372 10.7299 18.9769 14.7408 14.966C18.7704 10.9365 24.112 8.74025 29.7981 8.74025H29.9749L29.7888 8.75886C41.5423 8.75886 51.0718 18.2883 51.0718 30.0326C51.0718 31.0562 50.9973 32.0613 50.8577 33.057L38.8343 20.9964C36.4333 18.5954 33.2134 17.2646 29.8074 17.2646C26.4013 17.2646 23.1907 18.5954 20.7805 20.9964C18.3609 23.4159 17.0394 26.6172 17.0394 30.0326C17.0394 33.4479 18.3702 36.6492 20.7805 39.0688C23.1814 41.4697 26.4013 42.8005 29.8074 42.8005C33.2134 42.8005 36.424 41.4697 38.8343 39.0688C41.077 36.826 42.3706 33.8946 42.5474 30.7584L49.6014 37.8403C46.4839 45.7319 38.797 51.3249 29.7981 51.3249C25.1357 51.3249 20.6874 49.8359 17.0301 47.072V56.9178C20.9014 58.7604 25.2195 59.7841 29.7794 59.7841C46.2233 59.7841 59.5682 46.4578 59.5682 30.0139C59.5868 13.5515 46.2512 0.225187 29.7981 0.225187L29.7888 0.215881Z" fill="#0062E2"/>+</svg>diff --git a/web/src/constants/setting.ts b/web/src/constants/setting.tsindex a58af0176c..ed11656349 100644--- a/web/src/constants/setting.ts+++ b/web/src/constants/setting.ts@@ -56,6 +56,7 @@ export const IconMap = {Upstage: 'upstage','novita.ai': 'novita-ai',SILICONFLOW: 'siliconflow',+ 'PPIO': 'ppio','01.AI': 'yi',Replicate: 'replicate','Tencent Hunyuan': 'hunyuan',diff --git a/web/src/utils/common-util.ts b/web/src/utils/common-util.tsindex 9ad4d16386..e6f05bcfd1 100644--- a/web/src/utils/common-util.ts+++ b/web/src/utils/common-util.ts@@ -38,6 +38,7 @@ export const formatNumberWithThousandsSeparator = (numberStr: string) => {const orderFactoryList = ['OpenAI','Moonshot',+ "PPIO",'ZHIPU-AI','Ollama','Xinference',