mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Feat: add GiteeAI as a llm provider. (#8572)
### What problem does this PR solve? #1853 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -629,9 +629,13 @@ class GPUStackRerank(Base):
|
||||
|
||||
class NovitaRerank(JinaRerank):
|
||||
def __init__(self, key, model_name, base_url="https://api.novita.ai/v3/openai/rerank"):
|
||||
if not base_url:
|
||||
base_url = "https://api.novita.ai/v3/openai/rerank"
|
||||
super().__init__(key, model_name, base_url)
|
||||
|
||||
|
||||
class GiteeRerank(JinaRerank):
|
||||
def __init__(self, key, model_name, base_url="https://ai.gitee.com/v1/rerank"):
|
||||
if not base_url:
|
||||
base_url = "https://ai.gitee.com/v1/rerank"
|
||||
super().__init__(key, model_name, base_url)
|
||||
Reference in New Issue
Block a user