Skip to content

Increment version to 0.0.76 in pyproject.toml and update `markitdow… #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MervinPraison
Copy link
Owner

@MervinPraison MervinPraison commented Apr 8, 2025

User description

…ndependency to include all extras inuv.lock` for enhanced functionality.


PR Type

enhancement, dependencies


Description

  • Incremented project version to 0.0.76 in pyproject.toml.

  • Updated markitdown dependency to include all extras (markitdown[all]).

  • Improved dependency management for enhanced functionality.


Changes walkthrough 📝

Relevant files
Dependencies
pyproject.toml
Increment version and enhance `markitdown` dependency       

src/praisonai-agents/pyproject.toml

  • Updated project version from 0.0.75 to 0.0.76.
  • Changed markitdown dependency to markitdown[all] for extended
    functionality.
  • +2/-2     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Summary by CodeRabbit

    • Chores
      • Updated the project version to reflect the latest release.
      • Modified a dependency to now include all optional features for enhanced functionality.

    …n` dependency to include all extras in `uv.lock` for enhanced functionality.
    Copy link

    @gemini-code-assist gemini-code-assist bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Hello @MervinPraison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

    Summary of Changes

    This pull request increments the version of the praisonaiagents package from 0.0.75 to 0.0.76 in pyproject.toml and uv.lock. It also updates the markitdown dependency in pyproject.toml to include all extras (markitdown[all]) and reflects this change in uv.lock to ensure all markitdown features are available.

    Highlights

    • Version Increment: The package version has been bumped from 0.0.75 to 0.0.76 in both pyproject.toml and uv.lock.
    • Dependency Update: The markitdown dependency is updated to include all extras (markitdown[all]) in pyproject.toml and uv.lock.

    Changelog

    • src/praisonai-agents/pyproject.toml
      • Incremented package version from 0.0.75 to 0.0.76 (line 7).
      • Updated markitdown dependency to include all extras: markitdown[all] (line 31).
    • src/praisonai-agents/uv.lock
      • Incremented package version from 0.0.75 to 0.0.76 (line 1886).
      • Updated markitdown dependency to include all extras (line 1928).
    Using Gemini Code Assist

    The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

    Invoking Gemini

    You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

    Feature Command Description
    Code Review /gemini review Performs a code review for the current pull request in its current state.
    Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
    Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
    Help /gemini help Displays a list of available commands.

    Customization

    To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

    Limitations & Feedback

    Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

    You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


    A version ascends,
    Features bloom, dependencies mend,
    Code's garden thrives.

    Footnotes

    1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

    Copy link

    qodo-merge-pro bot commented Apr 8, 2025

    PR Reviewer Guide 🔍

    (Review updated until commit c332346)

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Copy link

    qodo-merge-pro bot commented Apr 8, 2025

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link

    netlify bot commented Apr 8, 2025

    Deploy Preview for praisonai canceled.

    Name Link
    🔨 Latest commit c332346
    🔍 Latest deploy log https://app.netlify.com/sites/praisonai/deploys/67f502f1b69cb000082c501e

    Copy link

    coderabbitai bot commented Apr 8, 2025

    Walkthrough

    The pyproject.toml file has been updated. The version has been incremented from "0.0.75" to "0.0.76", and the dependency for markitdown has been modified to markitdown[all], ensuring all optional features of the package are now included. These changes are confined to the project's configuration file.

    Changes

    File Change Summary
    src/praisonai-agents/pyproject.toml Version bumped from "0.0.75" to "0.0.76" and dependency changed from "markitdown" to "markitdown[all]"

    Poem

    In the realm of code so bright and fair,
    I, a rabbit, hop with flair.
    New version bounds and dependencies all,
    Have spurred a joyful, hearty call.
    With leaps of code, we dance in delight!
    🐇✨


    📜 Recent review details

    Configuration used: CodeRabbit UI
    Review profile: CHILL
    Plan: Pro

    📥 Commits

    Reviewing files that changed from the base of the PR and between 8fb8c21 and c332346.

    ⛔ Files ignored due to path filters (1)
    • src/praisonai-agents/uv.lock is excluded by !**/*.lock
    📒 Files selected for processing (1)
    • src/praisonai-agents/pyproject.toml (2 hunks)
    🔇 Additional comments (2)
    src/praisonai-agents/pyproject.toml (2)

    7-7: Version Number Updated Correctly.
    The project version has been successfully bumped from "0.0.75" to "0.0.76". Ensure that this alignments with any referenced changelogs or release notes in your documentation remains consistent.


    31-31: Enhanced Dependency Specification.
    The dependency for markitdown is now specified as "markitdown[all]", which ensures that all optional features of the package are included. This change is in line with your PR objective; however, please verify that incorporating all extras does not inadvertently introduce unnecessary bloat or conflicts in the environment.


    🪧 Tips

    Chat

    There are 3 ways to chat with CodeRabbit:

    • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
      • I pushed a fix in commit <commit_id>, please review it.
      • Generate unit testing code for this file.
      • Open a follow-up GitHub issue for this discussion.
    • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
      • @coderabbitai generate unit testing code for this file.
      • @coderabbitai modularize this function.
    • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
      • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
      • @coderabbitai read src/utils.ts and generate unit testing code.
      • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
      • @coderabbitai help me debug CodeRabbit configuration file.

    Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

    CodeRabbit Commands (Invoked using PR comments)

    • @coderabbitai pause to pause the reviews on a PR.
    • @coderabbitai resume to resume the paused reviews.
    • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
    • @coderabbitai full review to do a full review from scratch and review all the files again.
    • @coderabbitai summary to regenerate the summary of the PR.
    • @coderabbitai generate docstrings to generate docstrings for this PR.
    • @coderabbitai resolve resolve all the CodeRabbit review comments.
    • @coderabbitai plan to trigger planning for file edits and PR creation.
    • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
    • @coderabbitai help to get help.

    Other keywords and placeholders

    • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
    • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
    • Add @coderabbitai anywhere in the PR title to generate the title automatically.

    CodeRabbit Configuration File (.coderabbit.yaml)

    • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
    • Please see the configuration documentation for more information.
    • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

    Documentation and Community

    • Visit our Documentation for detailed information on how to use CodeRabbit.
    • Join our Discord Community to get help, request features, and share feedback.
    • Follow us on X/Twitter for updates and announcements.

    Copy link

    qodo-merge-pro bot commented Apr 8, 2025

    CI Feedback 🧐

    (Feedback updated until commit c332346)

    A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

    Action: test

    Failed stage: Run specific unittest [❌]

    Failed test name: test_basic_example, test_auto_example, test_advanced_example

    Failure summary:

    The action failed because all three tests in the TestExamples class failed with the same error:

  • test_basic_example (line 59): AssertionError: unexpectedly None
  • test_auto_example (line 69): AssertionError: unexpectedly None
  • test_advanced_example (line 64): AssertionError: unexpectedly None

    The root cause appears to be an invalid API key issue. The logs show multiple "Error code: 401 -
    Incorrect API key provided" messages when attempting to use the OpenAI API. This authentication
    failure caused the functions being tested to return None instead of valid results, triggering the
    assertion failures.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    874:  INFO     [11:06:11] config.py:368 INFO Created default  config.py:368
    875:  translation file at                                         
    876:  /home/runner/.praison/.chainlit/translations/k              
    877:  n.json                                                      
    878:  [11:06:13] INFO     [11:06:13] _client.py:1025 INFO HTTP         _client.py:1025
    879:  Request: GET                                                
    880:  https://api.gradio.app/gradio-messaging/en                  
    881:  "HTTP/1.1 200 OK"                                           
    882:  <praisonai.cli.PraisonAI object at 0x7f6aa11d05d0>
    883:  ╭─ Agent Info ─────────────────────────────────────────────────────────────────╮
    884:  │                                                                              │
    885:  │  👤 Agent: DirectAgent                                                       │
    886:  │  Role: Assistant                                                             │
    887:  │                                                                              │
    888:  ╰──────────────────────────────────────────────────────────────────────────────╯
    889:  ╭─────────────────────────────────── Error ────────────────────────────────────╮
    890:  │ Error in stream processing: Error code: 401 - {'error': {'message':          │
    891:  │ 'Incorrect API key provided:                                                 │
    892:  │ gsk_PYPR********************************************QBu2. You can find your  │
    893:  │ API key at https://platform.openai.com/account/api-keys.', 'type':           │
    894:  │ 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}          │
    895:  ╰──────────────────────────────────────────────────────────────────────────────╯
    896:  ╭──────────────────────────────── Error ─────────────────────────────────╮
    897:  │ Error in chat completion: 'NoneType' object has no attribute 'choices' │
    898:  ╰────────────────────────────────────────────────────────────────────────╯
    899:  autogen
    900:  ╭─ Agent Info ─────────────────────────────────────────────────────────────────╮
    901:  │                                                                              │
    902:  │  👤 Agent: DirectAgent                                                       │
    903:  │  Role: Assistant                                                             │
    904:  │                                                                              │
    905:  ╰──────────────────────────────────────────────────────────────────────────────╯
    906:  ╭─────────────────────────────────── Error ────────────────────────────────────╮
    907:  │ Error in stream processing: Error code: 401 - {'error': {'message':          │
    908:  │ 'Incorrect API key provided:                                                 │
    909:  │ gsk_PYPR********************************************QBu2. You can find your  │
    910:  │ API key at https://platform.openai.com/account/api-keys.', 'type':           │
    911:  │ 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}          │
    912:  ╰──────────────────────────────────────────────────────────────────────────────╯
    913:  ╭──────────────────────────────── Error ─────────────────────────────────╮
    914:  │ Error in chat completion: 'NoneType' object has no attribute 'choices' │
    915:  ╰────────────────────────────────────────────────────────────────────────╯
    916:  ╭─ Agent Info ─────────────────────────────────────────────────────────────────╮
    917:  │                                                                              │
    918:  │  👤 Agent: DirectAgent                                                       │
    919:  │  Role: Assistant                                                             │
    920:  │                                                                              │
    921:  ╰──────────────────────────────────────────────────────────────────────────────╯
    922:  ╭─────────────────────────────────── Error ────────────────────────────────────╮
    923:  │ Error in stream processing: Error code: 401 - {'error': {'message':          │
    924:  │ 'Incorrect API key provided:                                                 │
    925:  │ gsk_PYPR********************************************QBu2. You can find your  │
    926:  │ API key at https://platform.openai.com/account/api-keys.', 'type':           │
    927:  │ 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}          │
    928:  ╰──────────────────────────────────────────────────────────────────────────────╯
    929:  ╭──────────────────────────────── Error ─────────────────────────────────╮
    930:  │ Error in chat completion: 'NoneType' object has no attribute 'choices' │
    931:  ╰────────────────────────────────────────────────────────────────────────╯
    932:  FFF
    933:  ======================================================================
    934:  FAIL: test_advanced_example (tests.test.TestExamples.test_advanced_example)
    935:  ----------------------------------------------------------------------
    936:  Traceback (most recent call last):
    937:  File "/home/runner/work/PraisonAI/PraisonAI/tests/test.py", line 64, in test_advanced_example
    938:  self.assertIsNotNone(result)  # Adjust this assertion as needed
    939:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    940:  AssertionError: unexpectedly None
    941:  ======================================================================
    942:  FAIL: test_auto_example (tests.test.TestExamples.test_auto_example)
    943:  ----------------------------------------------------------------------
    944:  Traceback (most recent call last):
    945:  File "/home/runner/work/PraisonAI/PraisonAI/tests/test.py", line 69, in test_auto_example
    946:  self.assertIsNotNone(result)  # Adjust this assertion according to what auto() is expected to do
    947:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    948:  AssertionError: unexpectedly None
    949:  ======================================================================
    950:  FAIL: test_basic_example (tests.test.TestExamples.test_basic_example)
    951:  ----------------------------------------------------------------------
    952:  Traceback (most recent call last):
    953:  File "/home/runner/work/PraisonAI/PraisonAI/tests/test.py", line 59, in test_basic_example
    954:  self.assertIsNotNone(result)  # Adjust this assertion based on the expected outcome of main()
    955:  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    956:  AssertionError: unexpectedly None
    957:  ----------------------------------------------------------------------
    958:  Ran 3 tests in 0.245s
    959:  FAILED (failures=3)
    960:  ##[error]Process completed with exit code 1.
    961:  Post job cleanup.
    

    Copy link

    @gemini-code-assist gemini-code-assist bot left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Code Review

    The pull request increments the project version and updates a dependency to include all extras. The changes seem straightforward and well-documented in the PR description.

    Summary of Findings

    • Dependency Update: The markitdown dependency was updated to include all extras (markitdown[all]). This enhancement should be verified to ensure it doesn't introduce any unexpected side effects or conflicts with other dependencies.
    • Version Increment: The project version was incremented from 0.0.75 to 0.0.76. Ensure that this version increment aligns with the project's versioning strategy and release process.

    Merge Readiness

    The pull request appears to be in good shape for merging, but it's crucial to verify that the dependency update doesn't introduce any regressions or conflicts. I am unable to approve this pull request, and recommend that others review and approve this code before merging. At a minimum, the high severity issue should be addressed before merging.

    @@ -1925,7 +1925,7 @@ requires-dist = [
    { name = "chromadb", marker = "extra == 'knowledge'", specifier = "==0.5.23" },
    { name = "chromadb", marker = "extra == 'memory'", specifier = ">=0.5.23" },
    { name = "litellm", marker = "extra == 'llm'", specifier = ">=1.50.0" },
    { name = "markitdown", marker = "extra == 'knowledge'" },
    { name = "markitdown", extras = ["all"], marker = "extra == 'knowledge'" },

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    high

    It's good to see the uv.lock file was updated, but it's important to verify that all the necessary dependencies and sub-dependencies were correctly resolved and locked. Consider running tests to ensure that the application functions as expected with the updated lockfile.

        { name = "markitdown", extras = ["all"], marker = "extra == 'knowledge'" },
    
    

    @@ -28,7 +28,7 @@ memory = [
    knowledge = [
    "mem0ai>=0.1.0",
    "chromadb==0.5.23",
    "markitdown",
    "markitdown[all]",

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    medium

    Consider adding a comment explaining why all extras are needed for the markitdown dependency. This will help future developers understand the purpose of this change.

        "markitdown[all]",  # Includes all extras for enhanced markdown functionality
    
    

    @MervinPraison
    Copy link
    Owner Author

    /ask what are the key changes

    Copy link

    qodo-merge-pro bot commented Apr 8, 2025

    Ask

    what are the key changes

    Answer:

    The key changes in this PR are:

    1. Version increment: The project version in pyproject.toml has been updated from 0.0.75 to 0.0.76.

    2. Dependency enhancement: The markitdown dependency has been upgraded to markitdown[all], which includes all extras/optional features of the markitdown package.

    These changes appear to be focused on version management and enhancing functionality by including all available features of the markitdown dependency.

    @MervinPraison
    Copy link
    Owner Author

    /review pyproject.toml and requirements.txt file

    Copy link

    qodo-merge-pro bot commented Apr 8, 2025

    Persistent review updated to latest commit c332346

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    1 participant