DisplayOrModel returns DisplayModel if set (i.e., alias resolution preserved the original name), otherwise falls back to Model.
()
| 516 | // DisplayOrModel returns DisplayModel if set (i.e., alias resolution preserved the original name), |
| 517 | // otherwise falls back to Model. |
| 518 | func (m *ModelConfig) DisplayOrModel() string { |
| 519 | return cmp.Or(m.DisplayModel, m.Model) |
| 520 | } |
| 521 | |
| 522 | // FlexibleModelConfig wraps ModelConfig to support both shorthand and full syntax. |
| 523 | // It can be unmarshaled from either: |
no outgoing calls