* docs: add xAI Grok and Mistral AI provider configs * docs: add Anthropic Claude model configuration guide - Add comprehensive documentation for configuring Anthropic Claude models with Cline - Include API key setup, supported models list, and configuration steps - Cover advanced features like prompt caching and rate limits - Update navigation to include new Anthropic page in custom model configs section * docs: add DeepSeek, Ollama, OpenAI, OpenAI Compatible pages and update Plan & Act * docs: add Extended Thinking section to Anthropic configuration guide * docs: update vscode language model api page * docs: update vscode language model api docs * Add model documentation pages and update navigation structure - Add new documentation pages for model overviews (Claude, Gemini, OpenAI, XAI) - Add general models overview page - Update docs.json to include new model documentation in navigation - Update OpenAI-compatible model documentation * Remove Notes column from model documentation tables for consistency * Fix table formatting in Gemini models documentation * added 5 new model configurations and updated existing ones * Update AWS Bedrock documentation with minimal IAM permissions * modified: docs/get-to-know-the-models/claude-models.mdx * Renamed 'custom model configuration' to 'provider configuation' to avoid providers being confused with models * Fix dollar sign rendering in model documentation - Escape dollar signs in pricing tables to prevent MDX parsing issues - Fixes disappearing dollar signs in gemini-models.mdx and other model docs - Dollar signs now display correctly as literal currency symbols * Add feature descriptions to OpenAI and XAI model docs - Added 'Diverse Performance for Different Tasks Across Model Tiers' section to OpenAI models - Added 'Real-time Information Access' section to XAI models - Maintains consistency with existing Claude and Gemini documentation format - Highlights valuable features for agentic AI coding workflows * removing these files due to name change in header. they're in the new docs/provider configs folder * added 2 new issues per model page + formatting * Update model documentation files * Fix: Correct paths in docs.json for provider configs * docs: update docs.json and apply formatting * docs: fix broken links, add OpenRouter & Requesty pages * docs: remove 'get to know the models' section and files * Update docs/provider-config/openai-compatible.mdx Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: kevinneung <94151024+kevinneung@users.noreply.github.com> Co-authored-by: Dennise Bartlett <bartlett.dc.1@gmail.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
---
|
|
title: "LiteLLM & Cline (using Codestral)"
|
|
description: "Learn how to set up and run LiteLLM with Cline using the Codestral model. This guide covers Docker setup, configuration, and integration with Cline."
|
|
---
|
|
|
|
### Using LiteLLM with Cline
|
|
|
|
This guide demonstrates how to run a demo for LiteLLM starting with the Codestral model for use with Cline.
|
|
|
|
#### Prerequisites
|
|
|
|
- [Docker CLI or Docker Desktop](https://www.docker.com/get-started/) installed to run the LiteLLM image locally
|
|
- For this example config: A Codestral API Key (different from the Mistral API Keys)
|
|
|
|
#### Setup
|
|
|
|
1. **Create a `.env` file and fill in the appropriate field**
|
|
|
|
```bash
|
|
# Tip: Use the following command to generate a random alphanumeric key:
|
|
# openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | head -c 32
|
|
LITELLM_MASTER_KEY=YOUR_LITELLM_MASTER_KEY
|
|
CODESTRAL_API_KEY=YOUR_CODESTRAL_API_KEY
|
|
```
|
|
|
|
_Note: Although this is limited to localhost, it's a good practice set LITELLM_MASTER_KEY to something secure_
|
|
|
|
2. **Configuration**
|
|
|
|
We'll need to create a `config.yaml` file to contain our LiteLLM configuration. In this case we'll just have one model, 'codestral-latest' and label it 'codestral'
|
|
|
|
```yaml
|
|
model_list:
|
|
- model_name: codestral
|
|
litellm_params:
|
|
model: codestral/codestral-latest
|
|
api_key: os.environ/CODESTRAL_API_KEY
|
|
```
|
|
|
|
#### Running the Demo
|
|
|
|
1. **Startup the LiteLLM docker container**
|
|
|
|
```bash
|
|
docker run \
|
|
--env-file .env \
|
|
-v $(pwd)/config.yaml:/app/config.yaml \
|
|
-p 127.0.0.1:4000:4000 \
|
|
ghcr.io/berriai/litellm:main-latest \
|
|
--config /app/config.yaml --detailed_debug
|
|
```
|
|
|
|
2. **Setup Cline**
|
|
|
|
Once the LiteLLM server is up and running you can set it up in Cline:
|
|
|
|
- Base URL should be `http://0.0.0.0:4000/v1`
|
|
- API Key should be the one you set in `.env` for LITELLM_MASTER_KEY
|
|
- Model ID is `codestral` or whatever you named it under `config.yaml`
|
|
|
|
#### Getting Help
|
|
|
|
- [LiteLLM Documentation](https://docs.litellm.ai/)
|
|
- [Mistral AI Console](https://console.mistral.ai/)
|
|
- [Cline Discord Community](https://discord.gg/cline)
|