Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ httpx[http2]
# a2a (unofficial, stub if not on PyPI)
# For any additional plugins (add as needed)
# Add other packages here as you expand functionality
# supabase_py_vault removed: not on PyPI
# supabase_py_vault removed: not on PyPI
urllib3>=2.5.0 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

Upgrading urllib3 to version 2.5.0 (or newer, as specified by >=2.5.0) is a positive step for security by addressing known vulnerabilities.

However, it's crucial to address the critical dependency warnings highlighted by Snyk in the PR description. These include:

  • Version Mismatches:
    • httpx: Several packages (e.g., supafunc, supabase, storage3, postgrest-py, gotrue) require httpx <0.24.0, but version 0.24.1 is reported as present.
    • pydantic: postgrest-py and gotrue require pydantic <2.0.0, but version 2.5.3 is reported.
    • websockets: realtime requires websockets <11.0, but 11.0.3 is reported.
    • typing-extensions: openai requires typing-extensions >=4.11, but 4.7.1 is reported (this is an older version than required).
  • Missing Packages:
    • jiter (required by openai and anthropic).
    • tokenizers (required by anthropic).

These conflicts and missing dependencies can lead to runtime errors or unexpected behavior and must be resolved before this change is merged. This may involve:

  1. Adjusting versions of other dependencies in requirements.txt to ensure compatibility (e.g., pinning httpx, pydantic, websockets, typing-extensions to versions that satisfy all constraints, or upgrading the packages that depend on them).
  2. Adding missing packages (jiter, tokenizers) to requirements.txt.
  3. Investigating if openai==1.53.1 and anthropic==0.38.0 (or their current versions) can work with the existing typing-extensions==4.7.1 or if typing-extensions needs an upgrade that doesn't break other packages.

Please ensure the entire application is thoroughly tested after resolving these dependency issues to confirm stability and correct functionality.

Loading