openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

[PROBLEM] Error if not issubclass(cls, BaseModel):

Open gyaneshhere opened this issue 2 months ago • 0 comments

Identify the file to be fixed Using_GPT4_Vision_With_Function_Calling Describe the problem assert function throws a TypeError: issubclass() arg 1 must be a class

print("\n===================== Simulating user message 1 =====================") assert delivery_exception_support_handler("damaged_package").action == "refund_order"

Describe a solution A working version of code to generate the desired output as shown in the notebook

Screenshots

Screen Shot

gyaneshhere avatar May 02 '24 18:05 gyaneshhere