Module: pages/api/data/ai-comments

Methods

(inner) completionsHandler()

This is the API route for creating a comment generated by AI.

This is the API route for creating a comment generated by AI. Through this endpoint, this service hits OpenAI to generate a completion and then saves it to the database, associating it with a comment.

Source: