Open
Conversation
tomzx
reviewed
Jan 12, 2026
Comment on lines
+83
to
+95
| Replace: | ||
| ```yaml | ||
| env: | ||
| ANTHROPIC_BASE_URL: ${{ vars.ANTHROPIC_BASE_URL }} | ||
| ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL }} | ||
| ``` | ||
|
|
||
| With: | ||
| ```yaml | ||
| env: | ||
| PROVIDER_BASE_URL: ${{ vars.PROVIDER_BASE_URL }} | ||
| PROVIDER_MODEL: ${{ vars.PROVIDER_MODEL }} | ||
| ``` |
Contributor
There was a problem hiding this comment.
❓ Where is this modified?
The env keys of the action cannot be changed since that is what claude relies on.
Author
There was a problem hiding this comment.
You're absolutely right! I apologize for the confusion in the plan.
The plan is misleading here. The env keys (ANTHROPIC_BASE_URL, ANTHROPIC_MODEL) cannot be changed because that's what the claude-code-action expects.
What can be changed are the GitHub repository variable names that populate these values:
env:
ANTHROPIC_BASE_URL: ${{ vars.PROVIDER_BASE_URL }} # Was vars.ANTHROPIC_BASE_URL
ANTHROPIC_MODEL: ${{ vars.PROVIDER_MODEL }} # Was vars.ANTHROPIC_MODELThis way:
- Users configure provider-agnostic repository variables (
PROVIDER_BASE_URL,PROVIDER_MODEL) - The workflow still passes them to the action using the expected
ANTHROPIC_*keys
I'll update the plan to clarify this distinction.
c69f792 to
47a5f71
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a plan for issue #8.
Plan Overview
The plan proposes supporting multiple LLM providers (z.ai, MiniMax, and any OpenAI-compatible API) through the existing Claude Code GitHub Action by using provider-agnostic configuration variables. The key insight is that the
anthropics/claude-code-actionalready supports custom base URLs and models, so we only need to add configuration for provider selection rather than creating provider-specific workflows.Key Changes:
ANTHROPIC_BASE_URL→PROVIDER_BASE_URLANTHROPIC_MODEL→PROVIDER_MODELThis approach is backward compatible and requires no new GitHub Actions or major architectural changes.
Closes #8