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

Example fails with too many tokens requested error message #9

Closed
lalyos opened this issue Mar 20, 2023 · 4 comments
Closed

Example fails with too many tokens requested error message #9

lalyos opened this issue Mar 20, 2023 · 4 comments

Comments

@lalyos
Copy link

lalyos commented Mar 20, 2023

I've installed the v0.0.4 release:

curl -sL https://github.com/sozercan/kubectl-ai/releases/download/v0.0.4/kubectl-ai_darwin_arm64.tar.gz | tar -xz -C /usr/local/bin  kubectl-ai 

By trying the first example, i get the following error:

$ kubectl ai "create an nginx deployment with 3 replicas"
Error: [400:invalid_request_error] This model's maximum context length is 2049 tokens, however you requested 4022 tokens (34 in your prompt; 3988 for the completion). Please reduce your prompt; or completion length.
@JinoArch
Copy link

I am also facing this issue. Any help is appreciated. Thanks

@sozercan
Copy link
Owner

sozercan commented Mar 21, 2023

@lalyos @JinoArch thanks for the report! it should be fixed with #10, fix is available in release v0.0.5 (should be available in a few minutes).

@JinoArch
Copy link

thanks a lot. :)

@lalyos
Copy link
Author

lalyos commented Mar 21, 2023

I can confirm that v0.0.5 fixes this issue. Thanks a lot!

@lalyos lalyos closed this as completed Mar 21, 2023
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

3 participants