Skip to content

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

@ctn

Description

@ctn

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.

Metadata

Metadata

Labels

good first issueGood for newcomersquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions