Skip to content

Conversation

@edenreich
Copy link
Contributor

Closes #17

Implements the ability to configure default models for chat sessions using infer config set-model <MODEL_NAME>. When a default model is configured, the chat command skips the model selection view and uses the configured model directly.

Changes

  • Add ChatConfig struct with default_model field
  • Implement infer config set-model command to set default model
  • Modify chat command to skip model selection when default is set
  • Update chat application to start in chat view when default model is configured
  • Add comprehensive documentation with usage examples
  • Refactor complex nested blocks to pass linter checks

Testing

  • All existing tests pass
  • Linting passes without issues
  • Manual testing confirms feature works as expected

Generated with Claude Code

- Add ChatConfig struct with default_model field
- Implement `infer config set-model` command to set default model
- Modify chat command to skip model selection when default is set
- Update chat application to start in chat view when default model is configured
- Add comprehensive documentation with usage examples
- Refactor complex nested blocks to pass linter checks

This allows users to configure a preferred model that will be used automatically
in chat sessions, eliminating the need to select a model each time.

Co-authored-by: Eden Reich <[email protected]>
@edenreich edenreich merged commit 4c361d9 into main Aug 12, 2025
1 check passed
@edenreich edenreich deleted the claude/issue-17-20250812-1710 branch August 12, 2025 20:28
ig-semantic-release-bot bot pushed a commit that referenced this pull request Aug 12, 2025
## [0.8.0](v0.7.0...v0.8.0) (2025-08-12)

### 🚀 Features

* Add default model configuration for chat sessions ([#18](#18)) ([4c361d9](4c361d9)), closes [#17](#17)
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Make it possible to configure default models to use

2 participants