Work to simplify model config handling
Keep a direct reference to a provider.ModelConfig in TUI's AppModel, rather than the names of the provider and model
This commit is contained in:
@@ -261,7 +261,7 @@ func (m *Model) conversationMessagesView() string {
|
||||
heading := m.renderMessageHeading(-1, &conversation.Message{
|
||||
Role: api.MessageRoleAssistant,
|
||||
Metadata: conversation.MessageMeta{
|
||||
GenerationModel: &m.App.Model,
|
||||
GenerationModel: &m.App.Model.Model,
|
||||
},
|
||||
})
|
||||
sb.WriteString(heading)
|
||||
|
||||
Reference in New Issue
Block a user