mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-30 07:06:39 +08:00
feat: Add n1n provider (#12680)
This PR adds n1n as an LLM provider to RAGFlow. Co-authored-by: Qun <qun@ip-10-5-5-38.us-west-2.compute.internal>
This commit is contained in:
@ -1165,6 +1165,15 @@ class TokenPonyChat(Base):
|
||||
super().__init__(key, model_name, base_url, **kwargs)
|
||||
|
||||
|
||||
class N1nChat(Base):
|
||||
_FACTORY_NAME = "n1n"
|
||||
|
||||
def __init__(self, key, model_name, base_url="https://api.n1n.ai/v1", **kwargs):
|
||||
if not base_url:
|
||||
base_url = "https://api.n1n.ai/v1"
|
||||
super().__init__(key, model_name, base_url, **kwargs)
|
||||
|
||||
|
||||
class LiteLLMBase(ABC):
|
||||
_FACTORY_NAME = [
|
||||
"Tongyi-Qianwen",
|
||||
|
||||
Reference in New Issue
Block a user