Config file
Minimal config
A minimal ~/.airc.json
file consists only of API key for selected AI inference provider.
- Open AI
- Anthropic
- Perplexity
- Mistral
{
"providers": {
"openAi": {
"apiKey": "Your API key"
}
}
}
{
"providers": {
"anthropic": {
"apiKey": "Your API key"
}
}
}
{
"providers": {
"perplexity": {
"apiKey": "Your API key"
}
}
}
{
"providers": {
"mistral": {
"apiKey": "Your API key"
}
}
}
Provider Options
All provider specific-options are located under top-level providers
key in the config file.
Supported providers are currently:
openAi
anthropic
perplexity
mistral
AI Model
Each of supported providers can be tuned with model
option to select an exact AI model:
- Open AI
- Anthropic
- Perplexity
- Mistral
{
"providers": {
"openAi": {
// ...
"model": "gpt-4o" // Current default model
}
}
}
List of supported Open AI models.
{
"providers": {
"anthropic": {
// ...
"model": "claude-3-sonnet-20240229" // Current default model
}
}
}
List of supported Anthropic models.
{
"providers": {
"perplexity": {
// ...
"model": "llama-3-sonar-large-32k-chat" // Current default model
}
}
}
List of supported Perplexity models.
{
"providers": {
"mistral": {
// ...
"model": "mistral-large-latest" // Current default model
}
}
}
List of supported Mistral models.
Choosing proper model can have a huge impact on your AI assistant response quality, response time, as well as costs (although costs should be reasonable for manual, single-user interactions).
System Prompt
You can specify system prompt for each of the supported providers:
- Open AI
- Anthropic
- Perplexity
- Mistral
{
"providers": {
"openAi": {
// ...
"systemPrompt": "You are a helpful AI assistant. Respond in a concise way."
}
}
}
{
"providers": {
"anthropic": {
// ...
"systemPrompt": "You are a helpful AI assistant. Respond in a concise way."
}
}
}
{
"providers": {
"perplexity": {
// ...
"systemPrompt": "You are a helpful AI assistant. Respond in a concise way."
}
}
}
{
"providers": {
"mistral": {
// ...
"systemPrompt": "You are a helpful AI assistant. Respond in a concise way."
}
}
}
System prompt is an important part of AI model "personality" and should specify the key aspects you expect from AI. LLMs typically put great weight to the instructions given in the system prompt.