Private
Public Access
1
0

tui: Add setting view with support for changing the current model

This commit is contained in:
2024-09-25 15:49:45 +00:00
parent 3ec2675632
commit 69cdc0a5aa
10 changed files with 485 additions and 37 deletions

View File

@@ -288,7 +288,12 @@ func (m *Model) Footer(width int) string {
rightSegments = append(rightSegments, segmentStyle.Render(throughput))
}
model := fmt.Sprintf("Model: %s", *m.App.Ctx.Config.Defaults.Model)
if m.App.ProviderName != "" {
provider := fmt.Sprintf("Provider: %s", m.App.ProviderName)
rightSegments = append(rightSegments, segmentStyle.Render(provider))
}
model := fmt.Sprintf("Model: %s", m.App.Model)
rightSegments = append(rightSegments, segmentStyle.Render(model))
left := strings.Join(leftSegments, segmentSeparator)