#LiteLLM->Bedrock communication issue

1 messages ยท Page 1 of 1 (latest)

surreal aspen
#

models.json:
{
"providers": {
"litellm": {
"baseUrl": "http://0.0.0.0:4000/",
"apiKey": "sk-1234",
"api": "openai-completions",
"models": [
{
"id": "bedrock-claude-4-5-opus",
"name": "bedrock-claude-4-5-opus",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 15,
"output": 75,
"cacheRead": 1.5,
"cacheWrite": 18.75
},
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
}

When I send a message in clawdbot, I get this error in litellm:

litellm.exceptions.BadRequestError: litellm.BadRequestError: BedrockException - {"message":"The model returned the following errors: store: Extra inputs are not permitted"}. Received Model Group=bedrock-claude-4-5-opus

If I curl --location 'http://0.0.0.0:4000/chat/completions'
--header 'Authorization: Bearer sk-1234'
--header 'Content-Type: application/json'
--data ' {
"model": "bedrock-claude-4-5-opus",
"messages": [
{
"role": "user",
"content": "gm"
}
]
}'

I get a normal response. Any thoughts?

little loomBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

quiet coralBOT
surreal aspen
#

take another look

#

hey

quiet coralBOT
# surreal aspen hey

The issue is clear now. When Clawdbot sends requests to LiteLLM โ†’ Bedrock, something is adding a store parameter that Bedrock doesn't support.

This is likely coming from the openai-responses API format. Looking at your model config:

"api": "openai-completions"

However, Clawdbot (via pi-coding-agent) might still be sending store: true for OpenAI's Responses API feature.

Solutions:

  1. Add store: false to your model config - This explicitly disables the store parameter:
{
  "id": "bedrock-claude-4-5-opus",
#
  "name": "bedrock-claude-4-5-opus",
  "store": false,
  ...
}
  1. Configure LiteLLM to ignore unknown params - Add to your LiteLLM config:
general_settings: 
  strip_params: ["store"]
  1. Change API type - Try using anthropic-messages instead if Bedrock supports it for Claude 4.5:
"api": "anthropic-messages"
#
  1. Enable request logging in LiteLLM to see exactly what's being sent:
LITELLM_LOGGING=on litellm --config config.yaml

The curl works because you're sending a minimal payload. Clawdbot adds metadata like store for conversation history features that Bedrock doesn't understand.

Most likely fix: Add "store": false to your model definition in models.json.