BugFix: Anthropic compatible Custom Provider Fix to Match Anthropic Client Behavior#21336
Merged
vincentkoc merged 2 commits intoopenclaw:mainfrom Feb 19, 2026
Conversation
vincentkoc
added a commit
that referenced
this pull request
Feb 19, 2026
vignesh07
pushed a commit
to pahdo/openclaw
that referenced
this pull request
Feb 20, 2026
vignesh07
pushed a commit
to pahdo/openclaw
that referenced
this pull request
Feb 20, 2026
anisoptera
pushed a commit
to anisoptera/openclaw
that referenced
this pull request
Feb 20, 2026
anisoptera
pushed a commit
to anisoptera/openclaw
that referenced
this pull request
Feb 20, 2026
rodrigogs
pushed a commit
to rodrigogs/openclaw
that referenced
this pull request
Feb 20, 2026
rodrigogs
pushed a commit
to rodrigogs/openclaw
that referenced
this pull request
Feb 20, 2026
Hansen1018
added a commit
to Hansen1018/openclaw
that referenced
this pull request
Feb 21, 2026
Hansen1018
added a commit
to Hansen1018/openclaw
that referenced
this pull request
Feb 21, 2026
vincentkoc
pushed a commit
that referenced
this pull request
Feb 21, 2026
vincentkoc
pushed a commit
that referenced
this pull request
Feb 21, 2026
vincentkoc
added a commit
to akramcodez/openclaw
that referenced
this pull request
Feb 21, 2026
mmyyfirstb
pushed a commit
to mmyyfirstb/openclaw
that referenced
this pull request
Feb 21, 2026
mmyyfirstb
pushed a commit
to mmyyfirstb/openclaw
that referenced
this pull request
Feb 21, 2026
obviyus
pushed a commit
to guirguispierre/openclaw
that referenced
this pull request
Feb 22, 2026
obviyus
pushed a commit
to guirguispierre/openclaw
that referenced
this pull request
Feb 22, 2026
This was referenced Mar 1, 2026
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
…claw#21336) (cherry picked from commit 6ef365d) # Conflicts: # src/commands/onboard-custom.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
(cherry picked from commit 2c93f66)
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
(cherry picked from commit 2c93f66)
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
…claw#21336) (cherry picked from commit 6ef365d) # Conflicts: # src/commands/onboard-custom.ts
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
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.
Summary
Describe the problem and fix in 2–5 bullets:
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
List user-visible changes (including defaults/config).
None.
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) Yes, fixes calls to Anthropic compatible APIs.Yes/No) No.Yes/No) No.Yes, explain risk + mitigation:Tiny change to onboarding wizard only to match behavior of the rest of the application, which uses the anthropic client. The onboarding wizard uses a raw fetch, requiring us to manually inject /v1.
Repro + Verification
If you run locally, should be straightforward to test it works. Just add a custom provider with anthropic compatible selected, and see if works right off the bat.
Environment
Steps to reproduce
Expected behavior
The setup script and regular usage of anthropic compatible providers should have identical behavior for calling models.
Actual behavior
Instead it appears they are different.
Evidence
Attach at least one:
Logs from attaching a listener between Ollama and OpenClaw:
Human Verification (required)
What you personally verified (not just CI), and how:
Compatibility / Migration
Yes/No) YesYes/No) Kind of? Tiny tweak for onboarding wizard of custom providers.Yes/No) No.Failure Recovery (if this breaks)
Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.Greptile Summary
Fixed Anthropic-compatible endpoint configuration in onboarding wizard. The wizard now conditionally appends
/v1to the base URL when making verification requests, matching the behavior of the Anthropic client used in the rest of the application. This prevents double/v1/v1/messagespaths that caused 404 errors when using Anthropic-compatible providers like Ollama. The fix only affects the onboarding wizard verification step; existing configurations are not modified.Confidence Score: 5/5
/v1path handling only for the onboarding verification step. The fix is well-documented with an inline comment referencing the configuration docs, uses a simple regex pattern to check for existing/v1suffix, and aligns with the documented behavior that base URLs should omit/v1since the Anthropic client appends it automatically. The scope is limited to the verification function used during onboarding, leaving existing configurations untouched.Last reviewed commit: b7fb46f
(2/5) Greptile learns from your feedback when you react with thumbs up/down!