(model string)
| 58 | } |
| 59 | |
| 60 | func (s *chatSession) SwitchModel(model string) error { |
| 61 | if !modelExists(s.models, model) { |
| 62 | return fmt.Errorf("model %q is not available. Use /models to see installed models", model) |
| 63 | } |
| 64 | s.model = model |
| 65 | s.Clear() |
| 66 | return nil |
| 67 | } |
| 68 | |
| 69 | func (s *chatSession) Send(ctx context.Context, prompt string, out io.Writer) error { |
| 70 | s.messages = append(s.messages, chatMessage{ |
no test coverage detected