monorepo icon indicating copy to clipboard operation
monorepo copied to clipboard

FEAT: Update ai packages

Open 7alip opened this issue 6 months ago • 0 comments

Is your feature request related to a problem? Please describe.

There are some deprecations in the last ai and openai packages. When you update these packages, the functionality doesn't work.

Describe the solution you'd like

Adjust current gen-archive-content-posts and route-tweet-gen api routes. Here an example: https://github.com/vercel/ai/blob/main/examples/next-openai/app/api/completion/route.ts

Additional context

To save money, in development mode, we use the generateMockTweets function rather than making an actual request to openai. This function may need to be adjusted as well.

7alip avatar Aug 07 '24 16:08 7alip