Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompletionCreateParams is deprecated #12

Open
BaileySimrell opened this issue Oct 29, 2023 · 0 comments
Open

CompletionCreateParams is deprecated #12

BaileySimrell opened this issue Oct 29, 2023 · 0 comments

Comments

@BaileySimrell
Copy link

BaileySimrell commented Oct 29, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant