Still getting 404 - pi-ai is using its bundled v0.71.2
The problem: pi-ai has @anthropic-ai/sdk as a bundled dependency
Request being sent by OpenClaw:
⢠Model ID: claude-sonnet-4-5-20250929 (dated version)
⢠API: anthropic-messages via pi-ai library
⢠Provider: anthropic
Error returned:
404 {"type":"error","error":{"type":"not_found_error","message":"Not Found"},"request_id":"req_011CXd1jiR3n5rjQeDaLs9zj"}
What works (direct curl):
curl -X POST https://api.anthropic.com/v1/messages
-H "x-api-key: sk-ant-api03-..."
-H "anthropic-version: 2023-06-01"
-H "content-type: application/json"
-d '{
"model": "claude-sonnet-4-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'