8 views
-/https://github.com/berriai/litellm/issues/23316
GitHub · issue

#23316 [Bug]: '>' not supported between instances of 'NoneType' and 'int'

  • State: open
  • Author: @ohmer1
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using Litellm as a proxy between Openwebui (frontend) and Mistral.ai models (backend), including an image in a conversation leads to a processing failure within LiteLLM. This issue appears to be specific to Mistral.ai models.

Scope & Observations:

- This issue only occurs when LiteLLM is proxying requests for Mistral.ai models. It doesn't occur when LiteLLM is proxying requests for Gemini models, suggesting the issue is specific to the Mistral.ai integration or LiteLLM's handling of image data for it. - Not all images trigger the issue; it may be related to specific image characteristics such as maximum resolution or file size. - Reproducible Test Image: https://images.unsplash.com/photo-1768006273852-07a34dede095?ixlib=rb-4.1.0&q=85&fm=jpg&crop=entropy&cs=srgb&dl=zero-take-sTpSJDvZyEM-unsplash.jpg&w=1920

Screenshot:

<img width="2592" height="942" alt="Image" src="https://github.com/user-attachments/assets/444f91bd-6278-445f-94a0-da241635705f" />

### Steps to Reproduce

1. Add a mistral.ai model to litellm. 2. In openwebui, select a …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h50m21s ago — entered · #import:https:::github.com:berriai:litellm post #2133
Cross-cutting security integration would require new architecture, lifecycle hooks, configuration, dependency and compatibility decisions, plus broad testing across agent and persistence workflows. The other issue is comparatively localized provider-specific input handling and error-path debugging.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search