Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/goose-server/src/routes/providers_and_keys.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "Anthropic",
"description": "Use Claude and other Anthropic models",
"models": ["claude-3.5-sonnet-2"],
"required_keys": ["ANTHROPIC_API_KEY"]
"required_keys": ["ANTHROPIC_API_KEY", "ANTHROPIC_HOST"]
},
"databricks": {
"name": "Databricks",
Expand Down
2 changes: 1 addition & 1 deletion crates/goose/src/providers/anthropic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Provider for AnthropicProvider {
ConfigKey::new("ANTHROPIC_API_KEY", true, true, None),
ConfigKey::new(
"ANTHROPIC_HOST",
false,
true,
false,
Some("https://api.anthropic.com"),
),
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/getting-started/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Goose relies heavily on tool calling capabilities and currently works best with
| Provider | Description | Parameters |
|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Amazon Bedrock](https://aws.amazon.com/bedrock/) | Offers a variety of foundation models, including Claude, Jurassic-2, and others. **AWS environment variables must be set in advance, not configured through `goose configure`** | `AWS_PROFILE`, or `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION`, ... |
| [Anthropic](https://www.anthropic.com/) | Offers Claude, an advanced AI model for natural language tasks. | `ANTHROPIC_API_KEY` |
| [Anthropic](https://www.anthropic.com/) | Offers Claude, an advanced AI model for natural language tasks. | `ANTHROPIC_API_KEY`, `ANTHROPIC_HOST` (optional) |
| [Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/) | Access Azure-hosted OpenAI models, including GPT-4 and GPT-3.5. | `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT`, `AZURE_OPENAI_DEPLOYMENT_NAME` |
| [Databricks](https://www.databricks.com/) | Unified data analytics and AI platform for building and deploying models. | `DATABRICKS_HOST`, `DATABRICKS_TOKEN` |
| [Gemini](https://ai.google.dev/gemini-api/docs) | Advanced LLMs by Google with multimodal capabilities (text, images). | `GOOGLE_API_KEY` |
Expand Down
1 change: 1 addition & 0 deletions ui/desktop/src/components/settings/api_keys/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { default_key_value, required_keys } from '../models/hardcoded_stuff'; //
export function isSecretKey(keyName: string): boolean {
// Endpoints and hosts should not be stored as secrets
const nonSecretKeys = [
'ANTHROPIC_HOST',
'DATABRICKS_HOST',
'OLLAMA_HOST',
'OPENAI_HOST',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const short_list = ['gpt-4o', 'claude-3-5-sonnet-latest'];

export const required_keys = {
OpenAI: ['OPENAI_API_KEY', 'OPENAI_HOST', 'OPENAI_BASE_PATH'],
Anthropic: ['ANTHROPIC_API_KEY'],
Anthropic: ['ANTHROPIC_API_KEY', 'ANTHROPIC_HOST'],
Databricks: ['DATABRICKS_HOST'],
Groq: ['GROQ_API_KEY'],
Ollama: ['OLLAMA_HOST'],
Expand All @@ -69,6 +69,7 @@ export const required_keys = {
};

export const default_key_value = {
ANTHROPIC_HOST: 'https://api.anthropic.com',
OPENAI_HOST: 'https://api.openai.com',
OPENAI_BASE_PATH: 'v1/chat/completions',
OLLAMA_HOST: 'localhost',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export const PROVIDER_REGISTRY: ProviderRegistry[] = [
name: 'ANTHROPIC_API_KEY',
is_secret: true,
},
{
name: 'ANTHROPIC_HOST',
is_secret: false,
default: 'https://api.anthropic.com',
},
],
},
},
Expand Down
Loading