(db *db.DB, cfg *cfg.Cfg, logger *logger.Logger)
| 57 | const DefaultConversationTitle = "New Conversation ." |
| 58 | |
| 59 | func NewChatService(db *db.DB, cfg *cfg.Cfg, logger *logger.Logger) *ChatService { |
| 60 | base := NewBaseService(db, cfg, logger) |
| 61 | return &ChatService{ |
| 62 | BaseService: base, |
| 63 | conversationCollection: base.db.Collection((models.Conversation{}).CollectionName()), |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func (s *ChatService) GetSystemPrompt(ctx context.Context, fullContent string, projectInstructions string, userInstructions string, conversationType chatv1.ConversationType) (string, error) { |
| 68 | var tmpl *template.Template |
no test coverage detected