mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
docs base rerank config
This commit is contained in:
parent
8f8499908c
commit
db4cde9d9c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ LiteLLM **follows the Cohere Rerank API format** for all rerank providers. Here'
|
|||
|
||||
## 1. Create a transformation.py file
|
||||
|
||||
Create a config class named `<Provider><Endpoint>Config` that inherits from `BaseRerankConfig`:
|
||||
Create a config class named `<Provider><Endpoint>Config` that inherits from [`BaseRerankConfig`](https://github.com/BerriAI/litellm/blob/main/litellm/llms/base_llm/rerank/transformation.py):
|
||||
|
||||
```python
|
||||
from litellm.types.rerank import OptionalRerankParams, RerankRequest, RerankResponse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue