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:
saikidev
2025-02-17 12:03:26 +08:00
committed by GitHub
parent 88daa349f9
commit d2929e432e
8 changed files with 138 additions and 1 deletions

View File

@ -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