Skip to content

Commit

Permalink
Merge pull request #3711 from ChristopherTrimboli/ai-api-urls
Browse files Browse the repository at this point in the history
feat: ANTHROPIC_API_URL env.
  • Loading branch information
odilitime authored Feb 28, 2025
2 parents 198c380 + 0f0af9f commit 151ad23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ LARGE_NANOGPT_MODEL= # Default: gpt-4o

# Anthropic Configuration
ANTHROPIC_API_KEY= # For Claude
ANTHROPIC_API_URL=
SMALL_ANTHROPIC_MODEL= # Default: claude-3-haiku-20240307
MEDIUM_ANTHROPIC_MODEL= # Default: claude-3-5-sonnet-20241022
LARGE_ANTHROPIC_MODEL= # Default: claude-3-5-sonnet-20241022
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const models: Models = {
},
},
[ModelProviderName.ANTHROPIC]: {
endpoint: "https://api.anthropic.com/v1",
endpoint: settings.ANTHROPIC_API_URL || "https://api.anthropic.com/v1",
model: {
[ModelClass.SMALL]: {
name:
Expand Down Expand Up @@ -126,7 +126,7 @@ export const models: Models = {
},
},
[ModelProviderName.CLAUDE_VERTEX]: {
endpoint: "https://api.anthropic.com/v1", // TODO: check
endpoint: settings.ANTHROPIC_API_URL || "https://api.anthropic.com/v1", // TODO: check
model: {
[ModelClass.SMALL]: {
name: "claude-3-5-sonnet-20241022",
Expand Down

0 comments on commit 151ad23

Please sign in to comment.