Skip to content

Conversation

@szwang
Copy link
Collaborator

@szwang szwang commented Oct 7, 2025

This adds parity with the TypeScript SDK by implementing fallback_model functionality:

  • Add fallback_model parameter to ClaudeAgentOptions type
  • Pass fallback_model as --fallback-model CLI argument in transport layer
  • Add comprehensive tests for both types and transport layers
  • Fallback model defaults to None and is only included in CLI when set

This enables users to specify a fallback model that will be used if the primary model fails, providing better reliability and error handling.

🤖 Generated with Claude Code

This adds parity with the TypeScript SDK by implementing fallback_model
functionality:

- Add fallback_model parameter to ClaudeAgentOptions type
- Pass fallback_model as --fallback-model CLI argument in transport layer
- Add comprehensive tests for both types and transport layers
- Fallback model defaults to None and is only included in CLI when set

This enables users to specify a fallback model that will be used if the
primary model fails, providing better reliability and error handling.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@szwang szwang marked this pull request as draft October 7, 2025 15:58
@szwang szwang closed this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants