mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-20 00:11:27 +00:00
* fix: normalize usage tokens + migration streaming/batching - Migration: replace .fetchall() with yield_per streaming, replace per-message INSERT+SAVEPOINT with batched inserts (5k/batch) with fallback to row-by-row on error, add progress logging - Write path: call normalize_usage() in upsert_message() before saving to ensure input_tokens/output_tokens always present - Read path: analytics queries now COALESCE across input_tokens/prompt_tokens and output_tokens/completion_tokens so historical data with OpenAI-format keys is visible * fix: restore defensive timestamp conversion in migration Re-add try/except around int(float(timestamp)) that was accidentally dropped. Without this, a non-numeric timestamp string would cause a TypeError on the subsequent comparison, breaking the entire upgrade. * revert: remove changes to chat_messages.py |
||
|---|---|---|
| .. | ||
| 1af9b942657b_migrate_tags.py | ||
| 2f1211949ecc_update_message_and_channel_member_table.py | ||
| 3ab32c4b8f59_update_tags.py | ||
| 3af16a1c9fb6_update_user_table.py | ||
| 3e0e00844bb0_add_knowledge_file_table.py | ||
| 4ace53fd72c8_update_folder_table_datetime.py | ||
| 6a39f3d8e55c_add_knowledge_table.py | ||
| 7e5b5dc7342b_init.py | ||
| 9f0c9cd09105_add_note_table.py | ||
| 37f288994c47_add_group_member_table.py | ||
| 38d63c18f30f_add_oauth_session_table.py | ||
| 57c599a3cb57_add_channel_table.py | ||
| 81cc2ce44d79_update_channel_file_and_knowledge_table.py | ||
| 90ef40d4714e_update_channel_and_channel_members_table.py | ||
| 242a2047eae0_update_chat_table.py | ||
| 374d2f66af06_add_prompt_history_table.py | ||
| 922e7a387820_add_group_table.py | ||
| 3781e22d8b01_update_message_table.py | ||
| 6283dc0e4d8d_add_channel_file_table.py | ||
| 7826ab40b532_update_file_table.py | ||
| 8452d01d26d7_add_chat_message_table.py | ||
| 018012973d35_add_indexes.py | ||
| a1b2c3d4e5f6_add_skill_table.py | ||
| a5c220713937_add_reply_to_id_column_to_message.py | ||
| af906e964978_add_feedback_table.py | ||
| b2c3d4e5f6a7_add_scim_column_to_user_table.py | ||
| b10670c03dd5_update_user_table.py | ||
| c0fbf31ca0db_update_file_table.py | ||
| c29facfe716b_update_file_table_path.py | ||
| c69f45358db4_add_folder_table.py | ||
| c440947495f3_add_chat_file_table.py | ||
| ca81bd47c050_add_config_table.py | ||
| d31026856c01_update_folder_table_data.py | ||
| f1e2d3c4b5a6_add_access_grant_table.py | ||