feat(core): make capability optional in create_client#95
Conversation
- Add capability inference from model when not explicitly provided - Models with single capability auto-infer (e.g., SeeDream → IMAGE_GENERATION) - Models with multiple capabilities require explicit capability parameter - Add _infer_capability() helper for clean error messages - Update _resolve_model() to accept optional capability - Add LIST_MODELS and GET_MODEL endpoints to provider configs - Remove deprecated Mixtral 8x7B and 8x22B models - Update test to reflect new behavior (ModelNotFoundError vs ValueError)
PR Review: Make capability optional in create_clientSummaryThis PR introduces a helpful UX improvement by making the Code Quality & Best Practices✅ Strengths
|
Summary
SeeDream→IMAGE_GENERATION)LIST_MODELSandGET_MODELendpoints to provider configsUsage
Test plan