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

[SUPPORT]

Open 2000yeshu opened this issue 1 year ago • 0 comments
trafficstars

In the gpt 4 vision example, This. When I change the order of the inputs of Literal class from ["escalate_to_agent", "replace_order", "refund_order"] to ["escalate_to_agent", "refund_order", "replace_order"] keeping the other code exactly same. I start getting the error

Traceback (most recent call last): File "/home/yakul/ai-dialog-box/vision.py", line 153, in print(delivery_exception_support_handler("good_package").action) File "/home/yakul/ai-dialog-box/vision.py", line 143, in delivery_exception_support_handler for tool in function_calls: File "/home/yakul/.local/lib/python3.10/site-packages/instructor/dsl/parallel.py", line 47, in from_response yield self.registry[name].model_validate_json( KeyError: 'escalate_to_agent'

for the a package image that is in good condition Is there any obvious reason for this that I am missing. I am a beginner and any help would be appreciated. Thanks

2000yeshu avatar Apr 13 '24 07:04 2000yeshu