mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #9380] 0.5.8 Object of type ModelModel is not JSON serializable #15477
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 @LazyG9 on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9380
Bug Report
0.5.8
Object of type ModelModel is not JSON serializable
all models is error
@LazyG9 commented on GitHub (Feb 5, 2025):
i`m back to 0.5.7
everything is ok
@LazyG9 commented on GitHub (Feb 5, 2025):
func bug
@thiswillbeyourgithub commented on GitHub (Feb 5, 2025):
I'm having the same issue, so far caused by my add metadata function when it's calling json.dumps(body). I'm fixing it right now.
Note to devs: It would be nice if clicking on the error message banner could show the admin the trace. That would make it easier to find out the source of the issue.
@thiswillbeyourgithub commented on GitHub (Feb 5, 2025):
Update: It appears the issue was calling
json.dumps(meta=ModelMeta(profile_image_url='/static/favicon.png', description="X's prompt", capabilities={'vision': True, 'usage': True, 'citations': True}, position=17, tags=[{'name': 'vision'}, {'name': 'best'}, {'name': 'X'}], filterIds=['addmetadata', 'long_chat_limiter']), access_control={'read': {'group_ids': [], 'user_ids': []}, 'write': {'group_ids': [], 'user_ids': []}}, is_active=True, updated_at=17248X, created_at=172486X)}})@LazyG9 commented on GitHub (Feb 5, 2025):
i use this one
https://github.com/VariantConst/OpenWebUI-Monitor/pull/34/files
@thiswillbeyourgithub commented on GitHub (Feb 5, 2025):
I fixed my function in version 1.0.1 that can be found there: https://openwebui.com/f/qqqqqqqqqqqqqqqqqqqq/addmetadata