Remotion's Ai-improvements Package Explained
Remotion's internal package, ai-improvements, uses OpenAI to generate JSDoc comments for functions in the source code. It imports tasks like `generateJSDocTask` and uses prompts to write generated JSDoc to console.
This article is inspired by Remotion’s internal package, ai-improvements. This internal package is used to improve/generate JSDoc comment and log in the console for a function in the Remotion’s source code. This use case is quite different because you would normally use the source code and let OpenAI generate API documentation but instead in Remotion, this internal package uses the OpenAI API to generate JSDoc comment for a function using API documentation and the source code. We will look at a high level how this package is configured: improve-docs.ts generate-jsdoc Improve docs...