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

How do I run ChatSSM and the openai.ipynb? #51

Open
ctn opened this issue Dec 9, 2023 Discussed in #25 · 0 comments
Open

How do I run ChatSSM and the openai.ipynb? #51

ctn opened this issue Dec 9, 2023 Discussed in #25 · 0 comments
Assignees
Labels
good first issue Good for newcomers question Further information is requested

Comments

@ctn
Copy link
Contributor

ctn commented Dec 9, 2023

This appears to be an outdated example, @TheVinhLuong102 .

Discussed in #25

Originally posted by mikheladam October 23, 2023
Greetings!

I am a beginner exploring AI so my technical skills are still in development. I have some problem running the openai.ipynb and the chatssm example. For the openai.ipynb, I've set my API key but when i try to run it, I get an error. Below is the code and corresponding error.

Code:
ssm.discuss("Remember, my name is CTN. I am a chatbot."), I get this error

Error:
InvalidRequestError: Must provide an 'engine' or 'model' parameter to create a <class 'openai.api_resources.chat_completion.ChatCompletion'>

I'm not sure where to put the parameter mentioned in the error.

Another error I'm getting is when I run the chatssm example and try to enter a prompt, I get the following reply:
"SYSTEM: HTTP error status: 500"

I can't find anything in the documentation that may help solve these. Apologies if these are very basic questions or if I've missed an important obvious step. Any help would be much appreciated.

@ctn ctn added good first issue Good for newcomers question Further information is requested labels Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants