Getting started
Providers
Learn how to add providers into Latitude to use it in your prompts.
Overview
Providers in Latitude are the foundation for connecting to various AI models and services.
The name you introduce for each provider will be the one you will have to use in your prompts.
Creating a New Provider
You can add more than one provider. To create a new provider:
- Go to the “Settings” section
- On the “Providers” section click on the “Create Provider” button
- Fill out the configuration:
- Provider: Choose the AI service provider (e.g., OpenAI, Anthropic, Groq) or ‘Custom’ (instances like Ollama or Gpustack, compatible with the OpenAI API format).
- ID: Enter an alias for this provider configuration. This will be the name you have to use in the prompt editor.
- Token: Input your API key or access token for the selected provider.
- URL: Only for ‘Custom’, enter the base URL (the part before /chat/completions)
- Click “Create Provider” to save your new provider
- Now you can use it in your prompts
Using Providers in Prompts
Once you’ve set up a provider, you can use it in your prompts:
- Open the Prompt editor
- Create a new prompt or edit an existing one
- In the prompt configuration, select your desired provider from the dropdown menu or in the code
---
provider: openai
model: gpt-4o
---
For more information on integrating providers with your prompts and chains, see the Prompt Manager Overview guide.