mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 09:35:55 +03:00
[PR #104] feat: Add Custom Anthropic Model Option Support #120
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KeygraphHQ/shannon/pull/104
Author: @ibrahimsn98
Created: 2/9/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (2)
3b3081fAdd ANTHROPIC_MODEL env variable3b9b93dUpdate README.md to add Custom ANTHROPIC model📊 Changes
4 files changed (+31 additions, -1 deletions)
View changed files
📝
.env.example(+8 -0)📝
README.md(+21 -0)📝
docker-compose.yml(+1 -0)📝
src/ai/claude-executor.ts(+1 -1)📄 Description
Add Configurable Claude Model via Environment Variable
Problem
The Claude model was hardcoded to
claude-sonnet-4-5-20250929insrc/ai/claude-executor.ts. Users with custom Anthropic-compatible endpoints(proxies, API gateways, or alternative deployments) had no way to specify a different model name, even when their endpoint required it.
Solution
Introduce the
ANTHROPIC_MODELenvironment variable that allows users to override the default model. This works seamlessly with the existingANTHROPIC_BASE_URLsupport, enabling full customization of both the endpoint and the model.Changes
src/ai/claude-executor.tsprocess.env.ANTHROPIC_MODELwith fallback to default modeldocker-compose.ymlANTHROPIC_MODELenvironment variable to worker container.env.exampleREADME.mdUsage