LiteLLM & Cline (using Codestral)
Last updated
Last updated
This guide demonstrates how to run a demo for LiteLLM starting with the Codestral model for use with Cline.
Prerequisites
installed to run the LiteLLM image locally
For this example config: A Codestral API Key (different from the Mistral API Keys)
Setup
Create a .env
file and fill in the appropriate field
Copy
Note: Although this is limited to localhost, it's a good practice set LITELLM_MASTER_KEY to something secure
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'
Copy
Running the Demo
Startup the LiteLLM docker container
Copy
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
Author: mdp