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

Error running groq completion example #1028

Open
deepakjois opened this issue Sep 22, 2024 · 2 comments
Open

Error running groq completion example #1028

deepakjois opened this issue Sep 22, 2024 · 2 comments

Comments

@deepakjois
Copy link

$ ./groq-completion-example

2024/09/22 12:50:34 API returned unexpected status code: 400: property 'max_completion_tokens' is unsupported, did you mean 'max_tokens'?

I encountered this error when using it in my Go code as well. So this isnt an issue with the example, but probably with the underlying API call?

@deepakjois
Copy link
Author

This may have broken the Groq integration: #1013

@deepakjois
Copy link
Author

Is it possible to continue supporting max_tokens please, and special casing this for the o1 series of models.

For context, here is the response from OpenAI: https://community.openai.com/t/why-was-max-tokens-changed-to-max-completion-tokens/938077

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