chore: update codebuddy dependency to version 0.2 in pyproject.toml - #854
Open
promoteAI wants to merge 8 commits into
Open
chore: update codebuddy dependency to version 0.2 in pyproject.toml #854promoteAI wants to merge 8 commits into
promoteAI wants to merge 8 commits into
Conversation
…sing - Added `_dispatch_background_task` to run long-running tasks on a separate daemon thread, preventing blocking of the main event loop during knowledge base ingestion. - Updated `upload_files` and `create_knowledge_base` functions to utilize the new background task dispatching method. - Implemented rollback functionality for partially created knowledge bases in case of failures during file saving. - Enhanced tests to verify the correct offloading of file saving and background task execution.
The engine landed with three knobs that could not work as written: - ``extract_images`` was gated on a user-supplied ``image_output_dir`` that defaulted to empty, so image extraction never ran. Even when set, images landed outside ``images/`` and the Markdown kept LiteParse's bare ```` names, so the cache loader saw neither. Images now go to the workdir's ``images/`` like the PyMuPDF4LLM engine, links are rewritten to ``images/<name>``, and an empty dir is removed. - ``output_format`` was selectable, but the parse always writes ``.md``; picking JSON or text produced a mislabelled document. Pinned to Markdown and dropped from the settings slice. - ``image_output_dir`` was a free-text path joined onto the workdir. Removed with the rest. Also: normalize the slice with the shared coercers (a bare ``bool()`` reads the string ``"false"`` as True), allow-list ``image_mode``, pass ``quiet`` and ``ocr_failure_fatal=False`` so a systemic OCR failure degrades to recovered text instead of losing the document, pin the extra to ``<3.0``, and keep the engine lists in the three tests that assert them exactly. Excludes the unrelated background-task/rollback/off-loop changes this branch carried in ``api/routers/knowledge.py``: dev already routes uploads through ``_save_uploaded_files_off_loop``, and the rest is a separate change that deserves its own review.
# Conflicts: # deeptutor/services/parsing/engines/liteparse/config.py
…r markers in uv.lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
uv sync
Using CPython 3.12.9
Creating virtual environment at: .venv
× No solution found when resolving dependencies for split (markers: python_full_version == '3.13.*'):
╰─▶ Because only the following versions of codebuddy-agent-sdk are available:
codebuddy-agent-sdk<0.1.24
codebuddy-agent-sdk>0.2
and deeptutor[codebuddy] depends on codebuddy-agent-sdk>=0.1.24,<0.2, we can conclude that deeptutor[codebuddy]'s requirements are unsatisfiable.
And because your project requires deeptutor[codebuddy], we can conclude that your project's requirements are unsatisfiable.
Related Issues
Module(s) Affected
agentsapiconfigcoreknowledgeloggingservicestoolsutilsweb(Frontend)docs(Documentation)scriptstests...Checklist
pre-commit run --all-filesand fixed any issues.Additional Notes
Add any other context or screenshots about the pull request here.