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

[SUPPORT] #1143

Open
2000yeshu opened this issue Apr 13, 2024 · 0 comments
Open

[SUPPORT] #1143

2000yeshu opened this issue Apr 13, 2024 · 0 comments
Labels
support Questions about how to do something

Comments

@2000yeshu
Copy link

2000yeshu commented Apr 13, 2024

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 2000yeshu added the support Questions about how to do something label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions about how to do something
Projects
None yet
Development

No branches or pull requests

1 participant