Quick Start with Cloud LLMs
This guide will help you get started with DevoxxGenie using cloud-based LLM providers. Cloud providers offer more powerful models without requiring local computational resources, though they do require API keys and typically have associated costs.
Prerequisites
Before starting, ensure you have:
- DevoxxGenie plugin installed in IntelliJ IDEA
- API key(s) for your chosen cloud LLM provider(s)
- Internet connection for accessing cloud services
Supported Cloud LLM Providers
DevoxxGenie supports several cloud LLM providers:
- OpenAI (ChatGPT, GPT-4, etc.)
- Anthropic (Claude models)
- Mistral
- Groq
- Google (Gemini models)
- DeepInfra
- DeepSeek
- Kimi
- GLM (Zhipu AI)
- OpenRouter
- Azure OpenAI
- Amazon Bedrock
Setting Up with OpenAI
Here's how to set up DevoxxGenie with OpenAI:
1. Get an OpenAI API Key
- Create or log in to your OpenAI account
- Navigate to the API section
- Create a new API key or use an existing one
- Copy the API key for use in DevoxxGenie
2. Configure DevoxxGenie
- In IntelliJ IDEA, click on the DevoxxGenie icon in the right toolbar
- Click the settings (gear) icon in the DevoxxGenie window
- Select "OpenAI" as your LLM provider
- Paste your API key in the API Key field
- Select a model from the dropdown (e.g., gpt-4, gpt-3.5-turbo)
- Click "Apply" to save your settings
3. Start Using DevoxxGenie
Now you can start prompting DevoxxGenie with OpenAI. Try:
- Selecting a code snippet and asking for an explanation
- Requesting code generation for a specific task
- Using the "Add Project" feature to include project context in your prompts
Setting Up with Anthropic (Claude)
1. Get an Anthropic API Key
- Create or log in to your Anthropic account
- Generate an API key from your account settings
- Copy the API key
2. Configure DevoxxGenie
- Open DevoxxGenie settings
- Select "Anthropic" as your LLM provider
- Paste your API key
- Select a Claude model from the dropdown
- Click "Apply" to save
3. Start Using Anthropic with DevoxxGenie
Claude models excel at understanding and generating code with nuanced explanations.
Setting Up with Other Cloud Providers
The process is similar for other cloud providers:
- Obtain an API key from your chosen provider's website
- Open DevoxxGenie settings
- Select the provider from the dropdown
- Enter your API key
- Select a model
- Configure any provider-specific settings
- Click "Apply" to save
Cost Management
Cloud LLM providers charge based on token usage. DevoxxGenie helps manage costs with:
- Token Calculator: Calculate the cost of prompts before sending
- Token Usage Display: See token usage for each request
- Context Settings: Control the amount of context included in prompts
To configure cost settings:
- Go to DevoxxGenie settings
- Navigate to "Token Cost & Context Window"
- Review and adjust settings as needed
Security Considerations
When using cloud providers, consider:
- API Key Security: Your API keys are stored in the IDE's secure storage
- Data Privacy: Consider what code and data you're sending to cloud providers
- Usage Monitoring: Regularly check your usage on the provider's website to manage costs
Troubleshooting Cloud Provider Issues
API Key Problems
If you're having issues with your API key:
- Verify the key is correct and hasn't expired
- Check that you have billing set up with the provider (if required)
- Ensure you have the appropriate permissions for the models you're trying to use
Network Issues
If you're having connection problems:
- Check your internet connection
- Verify that your network allows connections to the API endpoints
- Check if you need to configure a proxy in IntelliJ IDEA settings
Next Steps
Now that you've set up DevoxxGenie with a cloud LLM provider, you can: