Fix: add mimo (#16136)

### What problem does this PR solve?

Add chat model factory for Xiaomi model.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Lynn
2026-06-17 19:02:33 +08:00
committed by GitHub
parent cb2e061120
commit a5cce29f22

View File

@@ -921,6 +921,15 @@ class OpenAI_APIChat(Base):
super().__init__(key, model_name, base_url, **kwargs)
class Xiaomi(Base):
_FACTORY_NAME = "Xiaomi"
def __init__(self, key, model_name, base_url, **kwargs):
if not base_url:
base_url = "https://api.xiaomimimo.com/v1"
super().__init__(key, model_name, base_url, **kwargs)
class LeptonAIChat(Base):
_FACTORY_NAME = "LeptonAI"