mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-05-02 21:30:38 +00:00
* fix: use sync get_state() for SqliteSaver in chat routers Replace async aget_state() calls with sync get_state() wrapped in asyncio.to_thread() to fix SqliteSaver compatibility issues. SqliteSaver does not support async methods, so we need to run the sync version in a separate thread. This is a follow-up to #519 which fixed the same issue in graph_utils.py but missed four locations: - chat.py: get_session() and execute_chat() - source_chat.py: get_source_chat_session() and stream_source_chat_response() Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * chore: translate comments to English --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Luis Novo <lfnovo@gmail.com> |
||
|---|---|---|
| .. | ||
| routers | ||
| __init__.py | ||
| auth.py | ||
| chat_service.py | ||
| CLAUDE.md | ||
| client.py | ||
| command_service.py | ||
| context_service.py | ||
| embedding_service.py | ||
| episode_profiles_service.py | ||
| insights_service.py | ||
| main.py | ||
| models.py | ||
| models_service.py | ||
| notebook_service.py | ||
| notes_service.py | ||
| podcast_api_service.py | ||
| podcast_service.py | ||
| search_service.py | ||
| settings_service.py | ||
| sources_service.py | ||
| transformations_service.py | ||