Skip to content

BugFix for OpenWebUI v0.9.5 API change#1

Open
kw81634dr wants to merge 1 commit into
rollecode:masterfrom
kw81634dr:fix-openwebui-v0.9.5
Open

BugFix for OpenWebUI v0.9.5 API change#1
kw81634dr wants to merge 1 commit into
rollecode:masterfrom
kw81634dr:fix-openwebui-v0.9.5

Conversation

@kw81634dr
Copy link
Copy Markdown

Fix 1: openwebuiexpects a FastAPI Request object to be passed along with the user object, but the older code in this plugin is only passing the user:Update 1. get_all_memories, 2. Update find_similar_memories_text.

Fix 2: Open WebUI has recently updated its internal database functions (like Users.get_user_by_id) to be asynchronous, which means they now return a coroutine instead of returning the user object directly. Because the code doesn't await this coroutine, it tries to access .id on the coroutine itself, causing the crash. 1.Update inlet function 2. Update inlet function

…ith the user object, but the older code in this plugin is only passing the user:Update 1. get_all_memories, 2. Update find_similar_memories_text.

Fix 2: Open WebUI has recently updated its internal database functions (like Users.get_user_by_id) to be asynchronous, which means they now return a coroutine instead of returning the user object directly. Because the code doesn't await this coroutine, it tries to access .id on the coroutine itself, causing the crash. 1.Update inlet function 2. Update inlet function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant