Skip to content

fix(memos-local-openclaw): detect Anthropic provider in OpenClaw fallback config#1263

Open
hijzy wants to merge 2 commits intoMemTensor:openclaw-local-plugin-20260317from
hijzy:fix/anthropic-endpoint
Open

fix(memos-local-openclaw): detect Anthropic provider in OpenClaw fallback config#1263
hijzy wants to merge 2 commits intoMemTensor:openclaw-local-plugin-20260317from
hijzy:fix/anthropic-endpoint

Conversation

@hijzy
Copy link
Collaborator

@hijzy hijzy commented Mar 17, 2026

Fixes #1254.

When Anthropic is configured as the OpenClaw native model, loadOpenClawFallbackConfig() was incorrectly treating it as openai_compatible, appending /chat/completions to the Anthropic endpoint.

Now detects the provider type from the provider key or base URL and constructs the correct endpoint:

  • Anthropic: appends /messages
  • Bedrock: uses baseUrl as-is
  • OpenAI-compatible: appends /chat/completions (existing behavior)

openclaw-bot added 2 commits March 17, 2026 17:20
…back config

When using Anthropic as the OpenClaw native model, the fallback config
was incorrectly treating it as OpenAI-compatible, appending
/chat/completions to the endpoint. Now detects provider type from the
provider key or base URL and uses the correct endpoint format.

Fixes MemTensor#1254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant