mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: add LLM provider PPIO (#5013)
### What problem does this PR solve? Add a LLM provider: PPIO ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Documentation Update
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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 Client
|
||||
|
||||
Reference in New Issue
Block a user