Feat: implement novitaAI embedding and reranking. (#8250)

### What problem does this PR solve?

Close #8227

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2025-06-13 15:42:17 +08:00
committed by GitHub
parent 6aa0b0819d
commit 65d5268439
3 changed files with 13 additions and 0 deletions

View File

@ -626,3 +626,7 @@ class GPUStackRerank(Base):
raise ValueError(
f"Error calling GPUStackRerank model {self.model_name}: {e.response.status_code} - {e.response.text}")
class NovitaRerank(JinaRerank):
def __init__(self, key, model_name, base_url="https://api.novita.ai/v3/openai/rerank"):
super().__init__(key, model_name, base_url)