Skip to main content

Directory Structure

When adding a new provider, you need to create a directory for the provider that follows the following structure:

litellm/llms/
└── provider_name/
β”œβ”€β”€ completion/ # use when endpoint is equivalent to openai's `/v1/completions`
β”‚ β”œβ”€β”€ handler.py
β”‚ └── transformation.py
β”œβ”€β”€ chat/ # use when endpoint is equivalent to openai's `/v1/chat/completions`
β”‚ β”œβ”€β”€ handler.py
β”‚ └── transformation.py
β”œβ”€β”€ embed/ # use when endpoint is equivalent to openai's `/v1/embeddings`
β”‚ β”œβ”€β”€ handler.py
β”‚ └── transformation.py
β”œβ”€β”€ audio_transcription/ # use when endpoint is equivalent to openai's `/v1/audio/transcriptions`
β”‚ β”œβ”€β”€ handler.py
β”‚ └── transformation.py
└── rerank/ # use when endpoint is equivalent to cohere's `/rerank` endpoint.
β”œβ”€β”€ handler.py
└── transformation.py