Content-Length: 310918 | pFad | https://github.com/All-Hands-AI/OpenHands/pull/10255

A7 feat: Add OPENHANDS_FORCE_VISION env var to override vision capability detection by danieljbruntz · Pull Request #10255 · All-Hands-AI/OpenHands · GitHub
Skip to content

Conversation

danieljbruntz
Copy link
Contributor

  • This change is worth documenting at https://docs.all-hands.dev/
  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality this introduces.

LiteLLM sometimes misreports vision capability for models that actually support it. This change allows users to manually enable vision support by setting the OPENHANDS_FORCE_VISION environment variable.


Summarize what the PR does, explaining any non-trivial design decisions.

This PR adds an environment variable check to _supports_vision that, if set to 1, true, yes, or on (case-insensitive), will override LiteLLM’s detection and force vision capability to be reported as supported. The implementation only applies the override if explicitly enabled.


Link of any specific issues this addresses:

#9750

…y detection

Allows users to manually force vision capability on by setting the OPENHANDS_FORCE_VISION environment variable.

This is useful for models with vision support being falsely flagged as unsupported by LiteLLM.
Copy link
Collaborator

@enyst enyst left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution @danieljbruntz !

I think maybe we can do the same thing that we are doing with native tool calling: override it in the configuration

# Handle native_tool_calling user-defined configuration

What do you think? Exactly as native_tool_calling

@neubig neubig assigned neubig and unassigned neubig Aug 15, 2025
@enyst enyst added the lint-fix Attempts to fix lint issues on the PR label Aug 21, 2025
@enyst enyst self-assigned this Aug 21, 2025
@enyst enyst enabled auto-merge (squash) August 25, 2025 18:52
@enyst enyst merged commit c9d9603 into All-Hands-AI:main Aug 25, 2025
17 checks passed
chuckbutkus pushed a commit that referenced this pull request Aug 26, 2025
…y detection (#10255)

Co-authored-by: mamoodi <mamoodiha@gmail.com>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
enyst added a commit to enyst/playground that referenced this pull request Sep 4, 2025
…y detection (All-Hands-AI#10255)

Co-authored-by: mamoodi <mamoodiha@gmail.com>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lint-fix Attempts to fix lint issues on the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/All-Hands-AI/OpenHands/pull/10255

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy