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