Rami Bitar

Results 3 comments of Rami Bitar

@dancer Here is sample code in the chat/route that is used to enable thinking in anthropic claude sonnet 4, which will occasionally (but not consistently) trigger the error. ```ts //...

@nspady @gr2m Both formats of the model name seem to map to the same claude sonnet 4 version so looks like it's backwards compatible. An invalid model name would throw...

@gr2m The issue resolved for me by switching to the amazon/bedrock model `anthropic/claude-sonnet-4-5`, which is amazon bedrock routed using vercel AI gateway, instead of using anthropic from `@ai-sdk/anthropic` with `anthropic("claude-sonnet-4-20250514").`...