Files
browser-use/tests
claude[bot] cedb0d9cd4 fix: handle unexpected response types in ChatAnthropic
- Add type checking before accessing response.usage attribute
- Raise clear ModelProviderError when response is not a Message object
- Prevents AttributeError when API returns string errors instead of proper response
- Fixes issue #2559 where 502 errors caused ''str'' object has no attribute ''usage''

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-07-29 18:09:01 +00:00
..
2025-01-19 17:16:53 -08:00
2025-07-11 00:44:10 -07:00