GetAssistance returns AI assistance for terminal questions.
(settings *models.Settings, question, context string, history []Message)
| 140 | |
| 141 | // GetAssistance returns AI assistance for terminal questions. |
| 142 | func (s *Service) GetAssistance(settings *models.Settings, question, context string, history []Message) (string, error) { |
| 143 | return s.callAI(settings, question, &callOptions{ |
| 144 | maxTokens: 1024, |
| 145 | temperature: 0.7, |
| 146 | }, systemPromptAssistant, context, history) |
| 147 | } |
| 148 | |
| 149 | // GetCompletion returns a command completion suggestion. |
| 150 | func (s *Service) GetCompletion(settings *models.Settings, input, context string) (string, error) { |
no test coverage detected