-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Issue with turbo #9
Comments
Hi Susanne, I hope you're doing well. I saw your GitHub issue regarding an error you encountered while using a chatbot model in your code. After reviewing your code and the error message, it appears that the model you're using, 'gpt-3.5-turbo', is not supported by the OpenAI API for the V1/c endpoint. This is because the model is a chat model, and not suitable for the V1/c endpoint. OpenAI offers a variety of models for different use cases, including chatbots. If you're looking to create a chatbot, I recommend selecting a supported chatbot model like Davinci, Curie, Ada, Babbage, or Codex. It's also important to ensure that the selected model is suitable for the API version you're using. Please make sure you choose the correct API version and model for your application. -> you must use ' /v1/chat/completions' for ' gpt-3.5-turbo or gpt-3.5-turbo-0301' and not '/v1/engines/' what I use in this example More Infos
I hope this helps you solve the issue you encountered. If you have any further questions or concerns, please don't hesitate to reach out. Best regards, Volkan Sah |
Thank you for the reply and information. I had assumed that one could use with your chatgpt example with gpt-3.5-turbo after seeing this in your readme: "Example for integration from GPT 3, 3.5 & 4 for your websites in HTML, CSS, JS & PHP" Tried in your config.php:
So, this was just misunderstanding with what was written in your readme. No biggie just thought it would be worth asking about. Thanks again. |
I update the readme.md with the endpoints. |
Oh yes, gave you a star! I am doing something wrong it appears. My old brain is not grasping what you are providing:) I have changed the following to use chatgpt-3.5-turbo:
Then:
Not working, get this dev console error: script.js:27 Error: Unexpected response format Objecterror: {message: 'Invalid URL (POST /v1/chat/gpt-3.5-turbo/completions)', type: 'invalid_request_error', param: null, code: null}[[Prototype]]: Object |
look for /v1/chat/completions than . Model. |
It works well please adust to your needs! Here a guidline for how handel with security tipps |
Nice job!
I try to use:
define('MODEL', 'gpt-3.5-turbo');
and get the following error in console:
The text was updated successfully, but these errors were encountered: