Repository navigation
feat(cli): Show the conversation's model in jp c show - #1243
Merged
Merged
Conversation
`jp conversation show` now reports the model a conversation is
configured to use. The text view adds a `Model` row beneath the title
(and assistant name, when set), and the JSON payload gains a `model`
key next to `assistant`:
```
ID jp-c10000
Title Rework the config pipeline
Model anthropic/claude-sonnet-4-5
```
The value is read from the conversation's own config (its base
snapshot plus every recorded config delta), with aliases resolved to
`provider/name`. `--cfg` overrides on the `show` invocation itself do
not change it, so each conversation listed reports its own model. As
with the other optional fields, the `model` key is always present in
the JSON output and is `null` when no model is set.
Signed-off-by: Jean Mertz <git@jeanmertz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
jp conversation shownow reports the model a conversation is configured to use. The text view adds aModelrow beneath the title (and assistant name, when set), and the JSON payload gains amodelkey next toassistant:The value is read from the conversation's own config (its base snapshot plus every recorded config delta), with aliases resolved to
provider/name.--cfgoverrides on theshowinvocation itself do not change it, so each conversation listed reports its own model. As with the other optional fields, themodelkey is always present in the JSON output and isnullwhen no model is set.