mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
ERROR:llama_deploy.services.workflow - Encountered error in task 24576e5e-edff-49cc-b3bf-55008826d818! keys must be str, int, float, bool or None, not ModelMetaclass #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ifreeman6 on GitHub (Nov 27, 2024).
When I run
python -m llama_deploy.apiserverand deploy my workflow, I request the API from front-end[/deployments/{deployment_name}/tasks/{task_id}/events], occurs the following errors in back-end:I try different methods, still not works...
help me. Thanks very much!
This is my workflow
@ifreeman6 commented on GitHub (Nov 27, 2024):
Always the last step occus error, as the pic shows:
@logan-markewich commented on GitHub (Nov 27, 2024):
@ifreeman6
My prime suspect here is this:
Try changing this to
And then modify your usage of this class
@ifreeman6 commented on GitHub (Nov 27, 2024):
Thanks your reply, but this change still doesn't work...
@ifreeman6 commented on GitHub (Nov 27, 2024):
Although I managed to work around this issue with an indirect solution in the frontend, I suspect the underlying problem might be a system-level bug that requires further investigation.
This is my temporary front-end workaround solution:
The back-end print log as follows:
ERROR:llama_deploy.services.workflow - Encountered error in task 507ab1b0-552b-439b-846e-c6ae853fe225! keys must be str, int, float, bool or None, not ModelMetaclass
@apost71 commented on GitHub (Dec 13, 2024):
@ifreeman6 I encountered this same issue, it seems to be stemming from this line in the
Contextclass. If the key is a pydantic model this dictionary is not serializable here