We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ive tried using models like "text-ada-001", but I get this error:
{ "error": { "message": "Invalid URL (POST /v1/chat/completions)", "type": "invalid_request_error", "param": null, "code": null }
Is there a way to support these models? Do they might need different input parameters?
The text was updated successfully, but these errors were encountered:
It seems that you used the create_chat instead of create_completion.
create_chat
create_completion
The /v1/chat/completions is used for chat (create_chat), and it only supports the gpt-4 and gpt-3.5-turbo models.
/v1/chat/completions
gpt-4
gpt-3.5-turbo
The correct endpoint for completion is /v1/completions (and you need to use create_completion).
/v1/completions
Here is an example:
create_completion( ENV["OPENAI_API_KEY"], "text-ada-001"; prompt="Oranges are..." )
Sorry, something went wrong.
See the docs, this package supports both completions and chat completions: https://juliaml.github.io/OpenAI.jl/dev/
No branches or pull requests
Ive tried using models like "text-ada-001", but I get this error:
Is there a way to support these models? Do they might need different input parameters?
The text was updated successfully, but these errors were encountered: