chathn icon indicating copy to clipboard operation
chathn copied to clipboard

`CompletionCreateParams` is deprecated

Open BaileySimrell opened this issue 1 year ago • 0 comments

Screenshot 2023-10-29 at 6 08 26 PM Screenshot 2023-10-29 at 6 09 23 PM Screenshot 2023-10-29 at 6 18 39 PM

On nextjs 13.4.7 (and above), this app will not compile/build successfully when using npm run build, however works in it works when in local dev mode, and works when deploying via one click to Vercel from the (templates)[https://vercel.com/templates] page.

It appears to be related to CompletionCreateParams which is being used/imported in the api/chat/functions.ts file. The linter error states that this has been deprecated and to use ChatCompletionCreateParams instead .. which I tried, and that successfully makes linter errors go away ... however then I get this error at build time:

Screenshot 2023-10-29 at 6 43 05 PM Screenshot 2023-10-29 at 6 41 41 PM

BaileySimrell avatar Oct 29 '23 22:10 BaileySimrell