Rename client/response variables to be unique per provider branch to avoid type inference conflicts. Use getattr for Anthropic content block text access to handle union types. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>