Files
open-webui/backend
PVBLIC Foundation f685e58833 fix: Preserve arrays in metadata + refresh OAuth token before sync
1. process_metadata (vector/utils.py):
   - Lists/arrays now preserved as-is (Pinecone supports native arrays)
   - Only datetime and dict types converted to strings
   - Enables Pinecone queries like: filter: {labels: {$in: ['SENT']}}
   - Fixed iteration bug (was modifying dict while iterating)

2. _sync_user_periodic (gmail_auto_sync.py):
   - Now uses OAuth manager to get/refresh token before sync
   - Prevents 'OAuth token expired' errors during attachment fetching
   - Falls back to stored token if refresh fails
2025-11-27 05:49:26 -08:00
..