Skip to content

feat(decisions): support Clef-omni audio and video - #45811

Merged
mateo-berri merged 12 commits into
mainfrom
moyai/93db5ceefaad/f010a9a6813f5f1e
Oct 12, 2026
Merged

mateo-berri merged 12 commits into
mainfrom
moyai/93db5ceefaad/f010a9a6813f5f1e

Conversation

@moyai-berriai

@moyai-berriai moyai-berriai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Clef-omni takes audio and video, but LiteLLM dropped both fields silently
  • A request with clips got a text-only answer and no error

How it solves it:

  • Top-level audio and videos flow through litellm.systemone, litellm.decisions, and all four proxy routes. Main's feat(sdk): add litellm.systemone and trim litellm.decisions to the OpenAI shape #45846 split the SDK into those two entry points after this PR's last merge, so this branch merges main and re-plumbs the clips into both
  • Each clip is a base64 data URL or {content_type, base64}, up to 4 audio and 2 video
  • Whether a Decisions model takes audio or video is read from its cost-map entry (supports_audio_input, supports_video_input), one flag per kind, so /model/info advertises it and a new model needs a cost-map entry, not code. Any other model refuses clips with a 400 naming audio and videos, or drops them when drop_params is set, the way an unsupported safety_identifier is handled today
  • Registers both Clef-omni aliases with their pricing and both media flags in the cost map

Decisions a reviewer should know about:

  • /v1/decisions takes audio and videos at the top level as a LiteLLM extension: OpenAI's Decisions API has no audio or video shape, only input_text and input_image parts, so there is nothing upstream to mirror
  • A data URL must carry a bare media type (data:audio/webm;base64,...), so data:audio/webm;codecs=opus;base64,... answers 400 from LiteLLM: Cloudflare's published schema only requires the data:audio/ prefix, but live it rejects a parameterized data URL with a 422, while it accepts parameters in the object form, which LiteLLM therefore passes through as is ({"content_type": "audio/wav;rate=16000", ...}). The alternative, rewriting such a data URL into the object form, was dropped because it would change the caller's wire format behind their back
  • Clips on a model that cannot take them follow the repo's drop_params convention. Without it the request answers 400 (cloudflare does not support parameters: ['audio', 'videos'], for model=clef-flash plus the drop_params hint). With it set globally or on the deployment the clips are dropped before the body is validated and the text-only request goes out, so a malformed clip on such a model is dropped too (an OpenAI temperature on an o-series model drops the same way). A malformed clip on a model that does take clips still answers 400 under drop_params, because dropping a clip the model would judge changes the answer silently. The first round answered 400 even under drop_params, which round 2 changed because drop_params is the caller opting into exactly that drop
  • "audio": null and "videos": null mean no clips, the same as [] or leaving the key out, on the SDK and on all four proxy routes; the OpenAPI schema still advertises arrays, so this is lenient input handling and no schema change. The proxy used to answer 400 for null because it validated the whole body before routing; it now validates audio and videos after the router picks the deployment, next to safety_identifier, which was already checked there, so drop_params on that deployment can apply
  • Video follows its own cost-map flag (supports_video_input), which existed on 97 entries but had no Python reader until now; litellm.supports_video_input(...) mirrors litellm.supports_audio_input(...). Capability therefore depends on the cost map the proxy loads, the remote map once this merges and the local one under LITELLM_LOCAL_MODEL_COST_MAP=True, the same dependency supports_vision has today. The schema descriptions still say "Clef-omni only." because that is true of the map today and changing them would churn the OpenAPI snapshot for no behavior change

User Flow

Before: a developer judging call recordings through Clef-omni gets answers that never heard the audio

  1. They send POST https://litellm-domain/v1/systemone with "model": "clef-omni", a state, a questions map, and "audio": ["data:audio/wav;base64,..."]
  2. The response is 200 with answers, but usage.input_tokens counts only the text, because the clip never reached Cloudflare
  3. The same clips on POST https://litellm-domain/v1/decisions (OpenAI shape, input plus a questions list) are dropped the same way
  4. Clips sent to a model that cannot take them (clef, clef-flash, an OpenAI decider) also come back 200 with the clips ignored
  5. GET https://litellm-domain/model/info shows no supports_audio_input or supports_video_input for clef-omni

After: the same request judges the audio, and a model that cannot take clips says so

  1. They send the same POST https://litellm-domain/v1/systemone with "audio": [...] and optionally "videos": [...], each clip a data URL or {"content_type": ..., "base64": ...}
  2. The response is 200, the answers reflect what is in the clip, and usage.input_tokens now counts the media
  3. The same body on POST https://litellm-domain/v1/decisions, and on the unversioned /systemone and /decisions routes, reaches Cloudflare with the clips intact
  4. Clips sent to a model that cannot take them return 400 naming audio and videos and the drop_params hint, or, when the deployment or the proxy sets drop_params: true, are dropped (malformed or not) and the text-only request goes out with a 200
  5. A clip that is not audio or video, a data URL whose media type carries parameters, or more than 4 audio or 2 video clips return 400 naming the problem; "audio": null or "videos": null is treated as no clips
  6. GET https://litellm-domain/model/info shows "supports_audio_input": true, "supports_video_input": true on clef-omni and neither flag on clef-flash

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Last updated: 05843fb. QA and /live-pr-risk ran on e854b20, the last commit with a product diff (the two commits after it merge main and extend the audit's tests, and the PR's product diff is byte-identical on both sides of the merge)

Shared setup for both legs: a detached worktree at the named commit, python -m litellm.proxy.proxy_cli --config config.yaml --port <random> --num_workers 2 with LITELLM_LOCAL_MODEL_COST_MAP=True, the Cloudflare key and the master key read from env. The clips are pineapple.wav (speech saying pineapple), the same clip as pineapple.webm (Opus), and red.mp4 and blue.mp4 (solid-color clips), each inlined by a small build script as a base64 data URL or as {content_type, base64}. The questions ask whether the audio says pineapple and whether the video is mostly red

model_list:
  - model_name: clef-omni
    litellm_params:
      model: cloudflare/clef-omni
      api_key: os.environ/CLOUDFLARE_API_KEY
  - model_name: clef-flash
    litellm_params:
      model: cloudflare/clef-flash
      api_key: os.environ/CLOUDFLARE_API_KEY

general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY

Before (7af7919)

leg=before tree=/Users/mateo/Development/litellm-worktrees/slp868-base2 commit=7af7919200 port=50269 workers=2

Audio and video on POST /v1/systemone

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Same clips in the OpenAI shape on POST /v1/decisions

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @decisions.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.0172},{"type":"predicate","name":"red","probability":0.0616}],"usage":{"input_tokens":235,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":235}}
HTTP 200

Unversioned POST /systemone

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Unversioned POST /decisions

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @decisions.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.0172},{"type":"predicate","name":"red","probability":0.0616}],"usage":{"input_tokens":235,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":235}}
HTTP 200

Control: blue video instead of red

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone_blue.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Object form {content_type, base64}

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_form.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Data URL with a media-type parameter (data:audio/wav;rate=16000;base64,...)

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @param_media_type.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Data URL data:audio/webm;codecs=opus;base64,...

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @webm_opus.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Clips on clef-flash, a model that cannot take them

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200

An image data URL in the audio slot

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @image_in_audio.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Three videos

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @too_many_videos.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

Text only, no media keys

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @text_only.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

GET /model/info advertises the media flags

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:50269/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  2. Observed:
{"model_name":"clef-omni","litellm_model":"cloudflare/clef-omni","supports_audio_input":null,"supports_video_input":null}
{"model_name":"clef-flash","litellm_model":"cloudflare/clef-flash","supports_audio_input":null,"supports_video_input":null}
HTTP 200

Malformed clips and an unauthenticated request

  1. audio_int: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":5}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_list_of_ints: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":[1,2]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_empty_string: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":""}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_null: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":null}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_empty_list: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":[]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_5kb_string: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":["<5000 letters a>"]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_twice: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":["data:audio/wav;base64,AA=="],"audio":["data:image/png;base64,AA=="]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. videos_object_missing_base64: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"videos":[{"content_type":"video/mp4"}]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. videos_object_extra_key: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"videos":[{"content_type":"video/mp4","base64":"AA==","url":"https://x"}]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. object_param_content_type: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_param_content_type.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200
  1. object_webm: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_webm.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200
  1. data_url_webm_plain: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @data_url_webm_plain.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200
  1. unauthenticated_media: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:32031/v1/systemone -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"error":{"message":"Authentication Error, No api key passed in.","type":"auth_error","param":"None","code":"401"}}
HTTP 401

Clips on a model that cannot take them, with and without drop_params

Same setup with config_drop.yaml, which adds a clef-flash-drop deployment carrying drop_params: true (leg=before tree=/Users/mateo/Development/litellm-worktrees/slp868-base2 commit=7af7919200 port=34903 workers=2 config=config_drop.yaml)

  1. clef-flash without drop_params: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:34903/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200
  1. clef-flash-drop (drop_params: true) on POST /v1/systemone: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:34903/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200
  1. clef-flash-drop (drop_params: true) on POST /v1/decisions: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:34903/v1/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop_openai.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.0663},{"type":"predicate","name":"red","probability":0.0828}],"usage":{"input_tokens":239,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":239}}
HTTP 200
  1. clef-flash without drop_params, malformed clips (a URL in the audio slot, a video object missing base64): curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:34903/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_malformed.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200
  1. clef-flash-drop (drop_params: true), the same malformed clips: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:34903/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop_malformed.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200

SDK: litellm.systemone and litellm.decisions with the same clips (no proxy)

The two calls an SDK user writes, run from a checkout at 7af791920052666d1e7b62d2b12a58b4880db135 with CLOUDFLARE_API_KEY and CLOUDFLARE_ACCOUNT_ID set (qa/run_sdk.sh, qa/sdk_clips.py)

$ export CLOUDFLARE_API_KEY=... CLOUDFLARE_ACCOUNT_ID=...
$ python sdk_clips.py
import base64
import json
import litellm

wav = "data:audio/wav;base64," + base64.b64encode(open("pineapple.wav", "rb").read()).decode()
mp4 = "data:video/mp4;base64," + base64.b64encode(open("red.mp4", "rb").read()).decode()
systemone = json.load(open("systemone.json"))
decisions = json.load(open("decisions.json"))

print("# litellm.systemone(...) with audio=[wav], videos=[mp4]")
try:
    response = litellm.systemone(
        "cloudflare/clef-omni", systemone["state"], systemone["questions"], audio=[wav], videos=[mp4]
    )
    print(json.dumps({"answers": response.answers, "usage": response.usage}, default=lambda o: o.__dict__ if hasattr(o, "__dict__") else str(o), separators=(",", ":")))
except TypeError as error:
    print("TypeError:", error)

print("# litellm.decisions(...) with audio=[wav], videos=[mp4]")
try:
    response = litellm.decisions(
        "cloudflare/clef-omni", input=decisions["input"], questions=decisions["questions"], audio=[wav], videos=[mp4]
    )
    print(json.dumps({"answers": response.answers, "usage": response.usage}, default=lambda o: o.__dict__ if hasattr(o, "__dict__") else str(o), separators=(",", ":")))
except TypeError as error:
    print("TypeError:", error)
# litellm.systemone(...) with audio=[wav], videos=[mp4]
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0,"cached_tokens":0,"cache_write_tokens":0}}
# litellm.decisions(...) with audio=[wav], videos=[mp4]
{"answers":[{"type":"predicate","name":"pineapple","probability":0.0172},{"type":"predicate","name":"red","probability":0.0616}],"usage":{"input_tokens":235,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":235}}

After (e854b20)

leg=after tree=/Users/mateo/Development/litellm-worktrees/slp868-head2 commit=e854b20f3e port=29946 workers=2

Audio and video on POST /v1/systemone

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.9506},"red":{"type":"noul","noul":0.9719}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200

Same clips in the OpenAI shape on POST /v1/decisions

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @decisions.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.9506},{"type":"predicate","name":"red","probability":0.9719}],"usage":{"input_tokens":537,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":537}}
HTTP 200

Unversioned POST /systemone

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.9506},"red":{"type":"noul","noul":0.9719}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200

Unversioned POST /decisions

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @decisions.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.9506},{"type":"predicate","name":"red","probability":0.9719}],"usage":{"input_tokens":537,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":537}}
HTTP 200

Control: blue video instead of red

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @systemone_blue.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.9476},"red":{"type":"noul","noul":0.0038}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200

Object form {content_type, base64}

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_form.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.9506},"red":{"type":"noul","noul":0.9719}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200

Data URL with a media-type parameter (data:audio/wav;rate=16000;base64,...)

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @param_media_type.json
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='data:audio/wav;rate=1600...AAAAAAAAAAAAAAAAAAAAAAA', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='data:audio/wav;rate=1600...AAAAAAAAAAAAAAAAAAAAAAA', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400

Data URL data:audio/webm;codecs=opus;base64,...

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @webm_opus.json
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='data:audio/webm;codecs=o...4+zgQC3iveBAfGCAczwgQM=', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='data:audio/webm;codecs=o...4+zgQC3iveBAfGCAczwgQM=', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400

Clips on clef-flash, a model that cannot take them

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash.json
  2. Observed:
{"error":{"message":"litellm.UnsupportedParamsError: cloudflare does not support parameters: ['audio', 'videos'], for model=cloudflare/clef-flash. To drop these, set `litellm.drop_params=True` or for proxy:\n\n`litellm_settings:\n drop_params: true`\n\n\nLiteLLM: model group 'clef-flash' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400

An image data URL in the audio slot

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @image_in_audio.json
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='data:image/png;base64,iVBORw0KGgo=', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='data:image/png;base64,iVBORw0KGgo=', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400

Three videos

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @too_many_videos.json
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 1 validation error for DecisionsRequestBody\nvideos\n  Tuple should have at most 2 items after validation, not 3 [type=too_long, input_value=['data:video/mp4;base64,A...EAAAAATGF2ZjYzLjEuMTAy'], input_type=list]\n    For further information visit https://errors.pydantic.dev/2.13/v/too_long\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400

Text only, no media keys

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @text_only.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0172},"red":{"type":"noul","noul":0.0616}},"usage":{"input_tokens":235,"output_tokens":0}}
HTTP 200

GET /model/info advertises the media flags

  1. curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:29946/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY"
  2. Observed:
{"model_name":"clef-omni","litellm_model":"cloudflare/clef-omni","supports_audio_input":true,"supports_video_input":true}
{"model_name":"clef-flash","litellm_model":"cloudflare/clef-flash","supports_audio_input":null,"supports_video_input":null}
HTTP 200

Malformed clips and an unauthenticated request

  1. audio_int: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":5}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 1 validation error for DecisionsRequestBody\naudio\n  Input should be a valid tuple [type=tuple_type, input_value=5, input_type=int]\n    For further information visit https://errors.pydantic.dev/2.13/v/tuple_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. audio_list_of_ints: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":[1,2]}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 4 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  Input should be a valid string [type=string_type, input_value=1, input_type=int]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_type\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value=1, input_type=int]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\naudio.1.constrained-str\n  Input should be a valid string [type=string_type, input_value=2, input_type=int]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_type\naudio.1.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value=2, input_type=int]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. audio_empty_string: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":""}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 1 validation error for DecisionsRequestBody\naudio\n  Input should be a valid tuple [type=tuple_type, input_value='', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/tuple_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. audio_null: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":null}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_empty_list: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":[]}'
  2. Observed:
{"model":"clef-omni","answers":{"ok":{"type":"noul","noul":0.0691}},"usage":{"input_tokens":140,"output_tokens":0}}
HTTP 200
  1. audio_5kb_string: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":["<5000 letters a>"]}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='aaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaa', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='aaaaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaaaaaaaaaaaaaa', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. audio_twice: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"audio":["data:audio/wav;base64,AA=="],"audio":["data:image/png;base64,AA=="]}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='data:image/png;base64,AA==', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='data:image/png;base64,AA==', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. videos_object_missing_base64: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"videos":[{"content_type":"video/mp4"}]}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\nvideos.0.constrained-str\n  Input should be a valid string [type=string_type, input_value={'content_type': 'video/mp4'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_type\nvideos.0.DecisionsBase64Video.base64\n  Field required [type=missing, input_value={'content_type': 'video/mp4'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.13/v/missing\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. videos_object_extra_key: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d '{"model":"clef-omni","state":"hostile cell","questions":{"ok":{"type":"noul","instructions":"Is this fine?"}},"videos":[{"content_type":"video/mp4","base64":"AA==","url":"https://x"}]}'
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 2 validation errors for DecisionsRequestBody\nvideos.0.constrained-str\n  Input should be a valid string [type=string_type, input_value={'content_type': 'video/m...==', 'url': 'https://x'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_type\nvideos.0.DecisionsBase64Video.url\n  Extra inputs are not permitted [type=extra_forbidden, input_value='https://x', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/extra_forbidden\n\nLiteLLM: model group 'clef-omni' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. object_param_content_type: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_param_content_type.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.9506},"red":{"type":"noul","noul":0.9719}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200
  1. object_webm: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @object_webm.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.9574},"red":{"type":"noul","noul":0.9723}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200
  1. data_url_webm_plain: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @data_url_webm_plain.json
  2. Observed:
{"model":"clef-omni","answers":{"pineapple":{"type":"noul","noul":0.9574},"red":{"type":"noul","noul":0.9723}},"usage":{"input_tokens":537,"output_tokens":0}}
HTTP 200
  1. unauthenticated_media: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:54424/v1/systemone -H 'Content-Type: application/json' -d @systemone.json
  2. Observed:
{"error":{"message":"Authentication Error, No api key passed in.","type":"auth_error","param":"None","code":"401"}}
HTTP 401

Clips on a model that cannot take them, with and without drop_params

Same setup with config_drop.yaml, which adds a clef-flash-drop deployment carrying drop_params: true (leg=after tree=/Users/mateo/Development/litellm-worktrees/slp868-head2 commit=e854b20f3e port=38963 workers=2 config=config_drop.yaml)

  1. clef-flash without drop_params: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:38963/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash.json
  2. Observed:
{"error":{"message":"litellm.UnsupportedParamsError: cloudflare does not support parameters: ['audio', 'videos'], for model=cloudflare/clef-flash. To drop these, set `litellm.drop_params=True` or for proxy:\n\n`litellm_settings:\n drop_params: true`\n\n\nLiteLLM: model group 'clef-flash' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. clef-flash-drop (drop_params: true) on POST /v1/systemone: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:38963/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200
  1. clef-flash-drop (drop_params: true) on POST /v1/decisions: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:38963/v1/decisions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop_openai.json
  2. Observed:
{"answers":[{"type":"predicate","name":"pineapple","probability":0.0663},{"type":"predicate","name":"red","probability":0.0828}],"usage":{"input_tokens":239,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":239}}
HTTP 200
  1. clef-flash without drop_params, malformed clips (a URL in the audio slot, a video object missing base64): curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:38963/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_malformed.json
  2. Observed:
{"error":{"message":"litellm.BadRequestError: Invalid Decisions request: 4 validation errors for DecisionsRequestBody\naudio.0.constrained-str\n  String should match pattern '^data:audio/[^;,\\s]+;base64,.+$' [type=string_pattern_mismatch, input_value='https://example.com/clip.wav', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_pattern_mismatch\naudio.0.DecisionsBase64Audio\n  Input should be a valid dictionary or instance of DecisionsBase64Audio [type=model_type, input_value='https://example.com/clip.wav', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.13/v/model_type\nvideos.0.constrained-str\n  Input should be a valid string [type=string_type, input_value={'content_type': 'video/mp4'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.13/v/string_type\nvideos.0.DecisionsBase64Video.base64\n  Field required [type=missing, input_value={'content_type': 'video/mp4'}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.13/v/missing\n\nLiteLLM: model group 'clef-flash' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
HTTP 400
  1. clef-flash-drop (drop_params: true), the same malformed clips: curl -s -w '\nHTTP %{http_code}\n' http://127.0.0.1:38963/v1/systemone -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @clef_flash_drop_malformed.json
  2. Observed:
{"answers":{"pineapple":{"type":"noul","noul":0.0663},"red":{"type":"noul","noul":0.0828}},"usage":{"input_tokens":239,"output_tokens":0}}
HTTP 200

SDK: litellm.systemone and litellm.decisions with the same clips (no proxy)

The two calls an SDK user writes, run from a checkout at e854b20f3ed40bd8760fb3949725b84a95f8950c with CLOUDFLARE_API_KEY and CLOUDFLARE_ACCOUNT_ID set (qa/run_sdk.sh, qa/sdk_clips.py)

$ export CLOUDFLARE_API_KEY=... CLOUDFLARE_ACCOUNT_ID=...
$ python sdk_clips.py
import base64
import json
import litellm

wav = "data:audio/wav;base64," + base64.b64encode(open("pineapple.wav", "rb").read()).decode()
mp4 = "data:video/mp4;base64," + base64.b64encode(open("red.mp4", "rb").read()).decode()
systemone = json.load(open("systemone.json"))
decisions = json.load(open("decisions.json"))

print("# litellm.systemone(...) with audio=[wav], videos=[mp4]")
try:
    response = litellm.systemone(
        "cloudflare/clef-omni", systemone["state"], systemone["questions"], audio=[wav], videos=[mp4]
    )
    print(json.dumps({"answers": response.answers, "usage": response.usage}, default=lambda o: o.__dict__ if hasattr(o, "__dict__") else str(o), separators=(",", ":")))
except TypeError as error:
    print("TypeError:", error)

print("# litellm.decisions(...) with audio=[wav], videos=[mp4]")
try:
    response = litellm.decisions(
        "cloudflare/clef-omni", input=decisions["input"], questions=decisions["questions"], audio=[wav], videos=[mp4]
    )
    print(json.dumps({"answers": response.answers, "usage": response.usage}, default=lambda o: o.__dict__ if hasattr(o, "__dict__") else str(o), separators=(",", ":")))
except TypeError as error:
    print("TypeError:", error)
# litellm.systemone(...) with audio=[wav], videos=[mp4]
{"answers":{"pineapple":{"type":"noul","noul":0.9506},"red":{"type":"noul","noul":0.9719}},"usage":{"input_tokens":537,"output_tokens":0,"cached_tokens":0,"cache_write_tokens":0}}
# litellm.decisions(...) with audio=[wav], videos=[mp4]
{"answers":[{"type":"predicate","name":"pineapple","probability":0.9506},{"type":"predicate","name":"red","probability":0.9719}],"usage":{"input_tokens":537,"input_tokens_details":{"cached_tokens":0,"cache_write_tokens":0},"output_tokens":0,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":537}}

Audit round 3 of 3

Rig slp868 on the GCE box mateo-claude-dev (~/.claude/bin/remote_rig.py, group providers, serial lanes, four pytest workers per lane as lane.json records): three legs, each a real two-worker proxy over its own Postgres database and Redis, the upstream a scripted wire_server inside the cell. base is the merge base 249add6f0d25e89be79e0b45f374dc4728a723cb with the PR's six test paths overlaid (the rig copies only tests/ paths onto its base checkout), head and ctl are the tip 05843fbae77a035467a607fa1795c232f8e83aa9. The head leg ran alone (head_run1, then head_run2 with the same seeds), then the regex cell (S18) alone on it twice, then the base leg alone and its regex cell, and the controls last on the ctl leg (ctl, then the K5 safety_identifier controls as ctl_k5). A first launch was stopped before its head lane finished because the push from the merge-base worktree had left the rig's base checkout at round 2's 7af791920052666d1e7b62d2b12a58b4880db135 (the rig moves its base only from the merge base it computes in the pushed tree); the base leg was pushed again from the PR worktree, the rig checked out 249add6f0d25e89be79e0b45f374dc4728a723cb, and the round relaunched from its first lane, so every lane folder and the log ~/.claude/detached/slp868-round3.log come from the relaunch

Lane totals at the tip: head_run1 54 collected, 54 passed; head_run2 54 collected, 54 passed (identical collection order); base 54 collected, 4 passed, 50 failed (every red is the merge-base behavior, see the per-cell table in phase12/05843fbae77a035467a607fa1795c232f8e83aa9/base_reasons.md; the 4 greens are round 2's four: S17, where both trees answer 401, the two S20 cells, where the merge base ignores the clips the deployment drops, and the H9/H10/E1 cell, where both trees send the same text-only body for missing, [] and null; the two N9 cells are red on the base because 249add6f0d forwards the clips to the Fireworks router and the scripted upstream answers 200); regex cell S18 alone: regex_base FAIL (the merge base answers 200 with the clip ignored), regex_head_run1 and regex_head_run2 PASS; ctl 5 collected, 5 passed; ctl_k5 6 collected, 6 passed. No skips, no retries, no reruns of a red cell

Deterministic cells (base = merge base 249add6f0d25e89be79e0b45f374dc4728a723cb, head = tip 05843fbae77a035467a607fa1795c232f8e83aa9, "commit last ran at" is the lane's sha, run ids are the lane labels below the table):

row endpoint mode client scenario test node id base head run 1 head run 2 verdict
C1 /v1/systemone (owned two-worker proxy) non-streaming httpx async x20 one worker SIGKILLed mid held burst, the sibling serves at least 10 with media, follow-up served, every POST carries the media tests/integration/providers/test_cloudflare_clef_omni_media_chaos.py::test_worker_sigkill_mid_burst_leaves_the_sibling_forwarding_media FAIL (expected) PASS PASS PASS
C2 /v1/systemone non-streaming httpx async x12/6/12 upstream drops half a burst, is stopped, then restarted on the same port, 30 spend rows, each success lands once tests/integration/providers/test_cloudflare_clef_omni_media_chaos.py::test_an_upstream_dropping_connections_mid_burst_then_stopped_and_restarted_lands_each_success_once FAIL (expected) PASS PASS PASS
E2, E2b /v1/systemone non-streaming httpx sync same request twice plus a clip swap, three upstream calls, three spend rows tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_repeated_and_clip_changed_requests_each_reach_the_upstream_and_are_each_billed FAIL (expected) PASS PASS PASS
E4 /v1/systemone, /systemone, /v1/decisions, /decisions non-streaming httpx async x20 20 concurrent media requests, each lands once with its media and its own answer, 20 spend rows tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_a_concurrent_burst_across_the_four_routes_lands_each_request_once_with_its_media FAIL (expected) PASS PASS PASS
H1, H12 /v1/systemone non-streaming httpx sync wav + mp4 data URLs forwarded verbatim, answers, cost header, spend row, GET /spend/logs?request_id tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_data_url_clips_reach_clef_omni_on_every_route_and_are_billed[/v1/systemone] FAIL (expected) PASS PASS PASS
H2, H12 /systemone non-streaming httpx sync wav + mp4 data URLs forwarded verbatim, answers, cost header, spend row, GET /spend/logs?request_id tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_data_url_clips_reach_clef_omni_on_every_route_and_are_billed[/systemone] FAIL (expected) PASS PASS PASS
H3, H12 /decisions non-streaming httpx sync wav + mp4 data URLs forwarded verbatim, answers, cost header, spend row, GET /spend/logs?request_id tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_data_url_clips_reach_clef_omni_on_every_route_and_are_billed[/decisions] FAIL (expected) PASS PASS PASS
H3, H12 /v1/decisions non-streaming httpx sync wav + mp4 data URLs forwarded verbatim, answers, cost header, spend row, GET /spend/logs?request_id tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_data_url_clips_reach_clef_omni_on_every_route_and_are_billed[/v1/decisions] FAIL (expected) PASS PASS PASS
H4, H12 /decisions non-streaming httpx async OpenAI-shape body with both clips forwarded and billed tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_an_async_caller_on_the_unversioned_decisions_route_gets_its_media_forwarded FAIL (expected) PASS PASS PASS
H5 /v1/systemone non-streaming httpx async object-form clips (plain_content_type) forwarded verbatim tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_object_form_clips_are_forwarded_verbatim[plain_content_type] FAIL (expected) PASS PASS PASS
H6, H11, E3 /v1/systemone, GET /model/info non-streaming httpx sync alias and canonical deployments forward media, are billed, and list the cost-map price tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_both_clef_omni_spellings_forward_media_and_carry_the_cost_map_price FAIL (expected) PASS PASS PASS
H7 /v1/systemone non-streaming httpx async object-form clips (parameterized_content_type) forwarded verbatim tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_object_form_clips_are_forwarded_verbatim[parameterized_content_type] FAIL (expected) PASS PASS PASS
H8 /v1/systemone non-streaming httpx sync 4 audio + 2 video clips forwarded tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_the_maxima_of_four_audio_and_two_video_clips_are_forwarded FAIL (expected) PASS PASS PASS
H9, H10, E1 /v1/systemone non-streaming httpx sync missing vs [] vs null send the same text-only body tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_missing_empty_and_null_media_send_the_same_text_only_body PASS (expected) PASS PASS PASS
K1, K2, K3 /v1/chat/completions, /v1/messages, /v1/responses streaming + non-streaming httpx async control: reasoning content stays with its request across the three unified endpoints tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py::test_concurrent_replays_across_endpoints_keep_each_reasoning_with_its_request - (control) ctl PASS - PASS
K1-K3 neighbour /v1/decisions non-streaming httpx sync control: openai/gpt-6-luna decider path, key, body, billing tests/integration/providers/test_decisions_openai_format_wire.py::test_each_provider_gets_its_own_path_key_and_body_and_is_billed[openai/gpt-6-luna] - (control) ctl PASS - PASS
K4 /v1/decisions non-streaming httpx sync control: cloudflare/clef decider path, key, body, billing tests/integration/providers/test_decisions_openai_format_wire.py::test_each_provider_gets_its_own_path_key_and_body_and_is_billed[cloudflare/clef] - (control) ctl PASS - PASS
K4 /v1/decisions non-streaming httpx sync control: text-only clef translation tests/integration/translation/decisions/basic/test_decisions_basic_cloudflare.py::test_decisions_basic_cloudflare[cloudflare/@cf/cloudflare/clef-basic] - (control) ctl PASS - PASS
K4 /v1/systemone non-streaming httpx sync control: text-only clef translation tests/integration/translation/decisions/basic/test_decisions_basic_cloudflare.py::test_decisions_basic_cloudflare[cloudflare/@cf/cloudflare/clef-systemone] - (control) ctl PASS - PASS
K5 /v1/systemone non-streaming httpx sync control: non-string safety_identifier (list-openai_format) refused unless the deployment drops params tests/integration/providers/test_decisions_openai_format_wire.py::test_a_non_string_safety_identifier_is_refused_as_invalid_unless_the_deployment_drops_params[list-openai_format] - (control) ctl PASS - PASS
K5 /v1/systemone non-streaming httpx sync control: non-string safety_identifier (list-system_one_format) refused unless the deployment drops params tests/integration/providers/test_decisions_openai_format_wire.py::test_a_non_string_safety_identifier_is_refused_as_invalid_unless_the_deployment_drops_params[list-system_one_format] - (control) ctl PASS - PASS
K5 /v1/systemone non-streaming httpx sync control: non-string safety_identifier (numeric-openai_format) refused unless the deployment drops params tests/integration/providers/test_decisions_openai_format_wire.py::test_a_non_string_safety_identifier_is_refused_as_invalid_unless_the_deployment_drops_params[numeric-openai_format] - (control) ctl PASS - PASS
K5 /v1/systemone non-streaming httpx sync control: non-string safety_identifier (numeric-system_one_format) refused unless the deployment drops params tests/integration/providers/test_decisions_openai_format_wire.py::test_a_non_string_safety_identifier_is_refused_as_invalid_unless_the_deployment_drops_params[numeric-system_one_format] - (control) ctl PASS - PASS
K5 /v1/decisions non-streaming httpx sync control: OpenAI keeps safety_identifier on the wire tests/integration/providers/test_decisions_openai_format_wire.py::test_openai_keeps_the_safety_identifier_on_the_wire_without_drop_params - (control) ctl PASS - PASS
K5 /v1/decisions non-streaming httpx sync control: safety_identifier on cloudflare/clef refused unless the deployment drops params tests/integration/providers/test_decisions_openai_format_wire.py::test_safety_identifier_is_refused_by_system_one_providers_unless_the_deployment_drops_params[cloudflare/clef] - (control) ctl PASS - PASS
N1 /decisions non-streaming httpx sync audio null + videos null is text-only; null on one kind keeps the other kind's clip in the upstream body tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_null_clips_mean_no_clips_of_that_kind_on_every_route[/decisions] FAIL (expected) PASS PASS PASS
N1 /systemone non-streaming httpx sync audio null + videos null is text-only; null on one kind keeps the other kind's clip in the upstream body tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_null_clips_mean_no_clips_of_that_kind_on_every_route[/systemone] FAIL (expected) PASS PASS PASS
N1 /v1/decisions non-streaming httpx sync audio null + videos null is text-only; null on one kind keeps the other kind's clip in the upstream body tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_null_clips_mean_no_clips_of_that_kind_on_every_route[/v1/decisions] FAIL (expected) PASS PASS PASS
N1 /v1/systemone non-streaming httpx sync audio null + videos null is text-only; null on one kind keeps the other kind's clip in the upstream body tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_null_clips_mean_no_clips_of_that_kind_on_every_route[/v1/systemone] FAIL (expected) PASS PASS PASS
N2 /v1/decisions non-streaming httpx sync clef-flash: malformed clips 400 Invalid Decisions request without drop_params, 200 with the text-only body under drop_params tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_on_a_model_without_support_are_refused_unless_the_deployment_drops_params[/v1/decisions] FAIL (expected) PASS PASS PASS
N2 /v1/systemone non-streaming httpx sync clef-flash: malformed clips 400 Invalid Decisions request without drop_params, 200 with the text-only body under drop_params tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_on_a_model_without_support_are_refused_unless_the_deployment_drops_params[/v1/systemone] FAIL (expected) PASS PASS PASS
N3 /v1/systemone non-streaming httpx sync clef-omni with drop_params: a malformed clip is still a 400 before any upstream call, a valid clip is forwarded tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_a_malformed_clip_on_a_media_model_is_refused_even_when_the_deployment_drops_params FAIL (expected) PASS PASS PASS
N4 GET /model/info n/a httpx sync supports_audio_input and supports_video_input true on both clef-omni spellings, falsy on clef-flash and clef tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_model_info_advertises_media_support_only_on_clef_omni_deployments FAIL (expected) PASS PASS PASS
N5 /v1/systemone non-streaming httpx sync deployment model_info mode evaluation + supports_audio_input: audio forwarded, video 400 naming ['videos'], video dropped under drop_params tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_a_deployment_advertising_only_audio_forwards_audio_and_refuses_or_drops_video FAIL (expected) PASS PASS PASS
N6 /v1/systemone non-streaming httpx sync deployment model_info mode chat with both flags: clips 400 with the drop_params hint, dropped under drop_params, never forwarded tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_a_chat_mode_deployment_advertising_media_is_not_a_decisions_media_model FAIL (expected) PASS PASS PASS
N7 /v1/decisions non-streaming httpx sync openai/gpt-audio (chat mode, supports_audio_input in the cost map): 400 naming ['audio'] without drop_params, dropped with it tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_clips_on_an_openai_chat_model_are_refused_or_dropped_never_forwarded FAIL (expected) PASS PASS PASS
N8 SDK litellm.decisions + adecisions (no proxy) non-streaming SDK sync + async positional api_key fifth and api_base sixth reach the wire, audio and videos keywords forwarded tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_positional_sdk_callers_keep_the_api_key_fifth_and_the_api_base_sixth FAIL (expected) PASS PASS PASS
O1 GET /openapi.json n/a httpx sync audio maxItems 4 and videos maxItems 2 on all four routes tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_openapi_documents_the_media_fields_on_every_decisions_route FAIL (expected) PASS PASS PASS
S1 /v1/systemone non-streaming httpx sync malformed clip (audio_int) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_int] FAIL (expected) PASS PASS PASS
S10 /v1/systemone non-streaming httpx sync malformed clip (parameterized_audio_data_url) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[parameterized_audio_data_url] FAIL (expected) PASS PASS PASS
S11 /v1/systemone non-streaming httpx sync malformed clip (five_audio_clips) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[five_audio_clips] FAIL (expected) PASS PASS PASS
S12 /v1/systemone non-streaming httpx sync malformed clip (three_videos) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[three_videos] FAIL (expected) PASS PASS PASS
S13 /v1/systemone non-streaming httpx sync media on cloudflare/clef-flash refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[cloudflare/clef-flash@/v1/systemone] FAIL (expected) PASS PASS PASS
S13 /v1/systemone non-streaming httpx sync media on cloudflare/clef refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[cloudflare/clef@/v1/systemone] FAIL (expected) PASS PASS PASS
S13 /v1/systemone non-streaming httpx sync media on openai/gpt-6-luna refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[openai/gpt-6-luna@/v1/systemone] FAIL (expected) PASS PASS PASS
S13, N9 /v1/systemone non-streaming httpx sync media on fireworks_ai/accounts/fireworks/routers/rune refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[fireworks_ai/accounts/fireworks/routers/rune@/v1/systemone] FAIL (expected) PASS PASS PASS
S14 /v1/decisions non-streaming httpx sync media on cloudflare/@cf/cloudflare/clef-flash refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[cloudflare/@cf/cloudflare/clef-flash@/v1/decisions] FAIL (expected) PASS PASS PASS
S14 /v1/decisions non-streaming httpx sync media on openai/gpt-6-luna refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[openai/gpt-6-luna@/v1/decisions] FAIL (expected) PASS PASS PASS
S14, N9 /v1/decisions non-streaming httpx sync media on fireworks_ai/accounts/fireworks/routers/rune refused 400 (does not support parameters: ['audio'], drop_params hint) before any upstream call, text-only still served tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_refused_before_any_upstream_call[fireworks_ai/accounts/fireworks/routers/rune@/v1/decisions] FAIL (expected) PASS PASS PASS
S15 /v1/systemone non-streaming httpx sync scripted upstream 422 reaches the caller with the same status as text-only, media was sent tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_an_upstream_rejection_of_a_media_request_reaches_the_caller_like_a_text_only_one[422] FAIL (expected) PASS PASS PASS
S16 /v1/systemone non-streaming httpx sync scripted upstream 413 reaches the caller with the same status as text-only, media was sent tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_an_upstream_rejection_of_a_media_request_reaches_the_caller_like_a_text_only_one[413] FAIL (expected) PASS PASS PASS
S17 /v1/systemone, /systemone, /v1/decisions, /decisions non-streaming httpx sync no Authorization header is a 401 on every route, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_an_unauthenticated_media_request_is_refused_before_validation PASS (expected) PASS PASS PASS
S18 /v1/systemone, GET /health/liveliness non-streaming httpx sync + probe thread 1 MiB data:audio/aaaa... without ;base64, refused under 5 s while liveliness stays under 1 s tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_the_data_url_pattern_worst_case_is_refused_in_bounded_time_while_liveliness_answers FAIL (expected) PASS PASS PASS
S19 /v1/systemone, /v1/chat/completions non-streaming httpx sync 13 refusals, then a chat completion on the control deployment and an accepted media request tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_unrelated_chat_keeps_working_after_a_run_of_refused_media_requests FAIL (expected) PASS PASS PASS
S2 /v1/systemone non-streaming httpx sync malformed clip (audio_list_of_ints) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_list_of_ints] FAIL (expected) PASS PASS PASS
S20 /v1/decisions non-streaming httpx sync clef-flash deployment with drop_params=True: the with-clips upstream body equals the text-only one, answers match tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_dropped_when_the_deployment_drops_params[/v1/decisions] PASS (expected) PASS PASS PASS
S20 /v1/systemone non-streaming httpx sync clef-flash deployment with drop_params=True: the with-clips upstream body equals the text-only one, answers match tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_media_on_a_model_without_support_is_dropped_when_the_deployment_drops_params[/v1/systemone] PASS (expected) PASS PASS PASS
S3 /v1/systemone non-streaming httpx sync malformed clip (audio_empty_string) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_empty_string] FAIL (expected) PASS PASS PASS
S5 /v1/systemone non-streaming httpx sync malformed clip (audio_5kb_garbage) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_5kb_garbage] FAIL (expected) PASS PASS PASS
S5 /v1/systemone non-streaming httpx sync malformed clip (audio_object_content_type_with_a_space) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_object_content_type_with_a_space] FAIL (expected) PASS PASS PASS
S6 /v1/systemone non-streaming httpx raw JSON duplicated audio key, last value wins (refused, then accepted) tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_a_duplicated_audio_key_is_judged_by_its_last_value FAIL (expected) PASS PASS PASS
S7 /v1/systemone non-streaming httpx sync malformed clip (video_object_with_empty_base64) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[video_object_with_empty_base64] FAIL (expected) PASS PASS PASS
S7 /v1/systemone non-streaming httpx sync malformed clip (videos_object_missing_base64) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[videos_object_missing_base64] FAIL (expected) PASS PASS PASS
S8 /v1/systemone non-streaming httpx sync malformed clip (videos_object_extra_key) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[videos_object_extra_key] FAIL (expected) PASS PASS PASS
S9 /v1/systemone non-streaming httpx sync malformed clip (audio_object_with_image_content_type) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[audio_object_with_image_content_type] FAIL (expected) PASS PASS PASS
S9 /v1/systemone non-streaming httpx sync malformed clip (image_data_url_in_audio) refused 400, upstream never called tests/integration/providers/test_cloudflare_clef_omni_media_wire.py::test_malformed_clips_are_refused_before_any_upstream_call[image_data_url_in_audio] FAIL (expected) PASS PASS PASS
  • head_run1: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 155 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/head_run1/ (run.log, junit.xml, execution.json, lane.json)
  • head_run2: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 153 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/head_run2/ (run.log, junit.xml, execution.json, lane.json)
  • base: leg base, sha 249add6f0d25e89be79e0b45f374dc4728a723cb, exit 1, 164 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/base/ (run.log, junit.xml, execution.json, lane.json)
  • regex_base: leg base, sha 249add6f0d25e89be79e0b45f374dc4728a723cb, exit 1, 102 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_base/ (run.log, junit.xml, execution.json, lane.json)
  • regex_head_run1: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 139 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_head_run1/ (run.log, junit.xml, execution.json, lane.json)
  • regex_head_run2: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 110 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_head_run2/ (run.log, junit.xml, execution.json, lane.json)
  • ctl: leg ctl, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 98 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/ctl/ (run.log, junit.xml, execution.json, lane.json)
  • ctl_k5: leg ctl, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 78 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/ctl_k5/ (run.log, junit.xml, execution.json, lane.json)

Lanes:

  • head_run1: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 155 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/head_run1/ (run.log, junit.xml, execution.json, lane.json)
  • head_run2: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 153 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/head_run2/ (run.log, junit.xml, execution.json, lane.json)
  • base: leg base, sha 249add6f0d25e89be79e0b45f374dc4728a723cb, exit 1, 164 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/base/ (run.log, junit.xml, execution.json, lane.json)
  • regex_base: leg base, sha 249add6f0d25e89be79e0b45f374dc4728a723cb, exit 1, 102 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_base/ (run.log, junit.xml, execution.json, lane.json)
  • regex_head_run1: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 139 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_head_run1/ (run.log, junit.xml, execution.json, lane.json)
  • regex_head_run2: leg head, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 110 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/regex_head_run2/ (run.log, junit.xml, execution.json, lane.json)
  • ctl: leg ctl, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 98 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/ctl/ (run.log, junit.xml, execution.json, lane.json)
  • ctl_k5: leg ctl, sha 05843fbae77a035467a607fa1795c232f8e83aa9, exit 0, 78 s, seed 20261010, order seed 45811, workers 4, box mateo-claude-dev, artifacts phase12/05843fbae77a035467a607fa1795c232f8e83aa9/ctl_k5/ (run.log, junit.xml, execution.json, lane.json)

Live cells (vendors: Cloudflare Workers AI, models @cf/cloudflare/clef-omni and clef-flash, and for N9 Fireworks System One, model accounts/fireworks/routers/rune, real spend on both; the legs qa/run_before6.sh and qa/run_after6.sh driving qa/run_leg.sh, qa/run_hostile.sh, qa/run_drop.sh and the round 3 qa/run_rune.sh (qa/config_rune.yaml) against two-worker laptop proxies on the trees slp868-base2 at 249add6f0d25e89be79e0b45f374dc4728a723cb (ports 55477, 35195, 56726, 47607) and slp868-head2 at 05843fbae77a035467a607fa1795c232f8e83aa9 (ports 57585, 28853, 49918, 31996); transcripts copied to live/05843fbae77a035467a607fa1795c232f8e83aa9/ as before6.* and after6.*; the Cloudflare transcripts match round 2's line for line after number masking except the leg label lines, with the same probabilities and token counts; the after leg's drop and rune scripts first exited 2 under CRITICAL laptop headroom before booting a proxy and reran behind a headroom wait):

row scenario base 249add6f0d25e89be79e0b45f374dc4728a723cb head 05843fbae77a035467a607fa1795c232f8e83aa9 artifact
L1 pineapple wav + red mp4 data URLs on /v1/systemone, /systemone, /v1/decisions, /decisions 200, 235 input tokens, pineapple 0.0172, red 0.0616 (clips ignored) 200, 537 input tokens, pineapple 0.9506, red 0.9719 on all four routes live/05843fbae77a035467a607fa1795c232f8e83aa9/before6.run.txt, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt
L2 blue mp4 control on /v1/systemone red 0.0616 (same as L1, clips ignored) red 0.0038, pineapple 0.9476, 537 tokens live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt systemone_blue
L3 object form, object content_type with parameters, object webm, plain webm data URL 200, 235 tokens, clips ignored 200, 537 tokens, pineapple 0.9506/0.9574, red 0.9719/0.9723 live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt object_form, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.hostile.txt object_param_content_type, object_webm, data_url_webm_plain
L4 media on the strict clef-flash deployment, /v1/systemone 200, 239 tokens, clips ignored 400 litellm.UnsupportedParamsError: cloudflare does not support parameters: ['audio', 'videos'], for model=cloudflare/clef-flash. To drop these, set litellm.drop_params=True ... live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt and live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.drop.txt clef_flash
L5 media on a clef-flash deployment with drop_params: true, /v1/systemone and /v1/decisions, plus malformed clips on the strict and the drop deployment 200, 239 tokens everywhere 200, 239 tokens, the text-only answers (pineapple 0.0663, red 0.0828) on both routes; strict malformed 400 Invalid Decisions request, drop malformed 200 text-only live/05843fbae77a035467a607fa1795c232f8e83aa9/before6.drop.txt, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.drop.txt clef_flash_drop, clef_flash_drop_openai, clef_flash_malformed, clef_flash_drop_malformed
N9 live media on the Fireworks System One router fireworks_ai/accounts/fireworks/routers/rune (main #46057): the strict deployment on /v1/systemone and /v1/decisions, a drop_params: true deployment on both, and text only 200 on every request, 256 input tokens with or without clips, so the clips never reached the model strict 400 litellm.UnsupportedParamsError: fireworks_ai does not support parameters: ['audio', 'videos'], for model=fireworks_ai/accounts/fireworks/routers/rune. To drop these, set litellm.drop_params=True ... on both routes; drop 200 with the text-only answer and 256 tokens on both routes; text only 200, 256 tokens, on both trees live/05843fbae77a035467a607fa1795c232f8e83aa9/before6.rune.txt, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.rune.txt rune_text, rune, rune_openai, rune_drop, rune_drop_openai
S1-S3 twins, S4 (retired) audio 5, [1, 2], "", null 200 400 Invalid Decisions request: ... Input should be a valid tuple or per-item string_type; audio: null 200 with the text-only answer and 140 tokens on both trees live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.hostile.txt audio_int, audio_list_of_ints, audio_empty_string, audio_null
S5, S6, S7, S8, S9 twins 5 KB garbage, duplicated audio key, object missing base64, object extra key url, image data URL in audio 200 400 (string_pattern_mismatch, string_type) live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.hostile.txt, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt image_in_audio
S10 twins data:audio/wav;rate=16000;base64,... and data:audio/webm;codecs=opus;base64,... 200 400 String should match pattern '^data:audio/[^;,\s]+;base64,.+$' live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt param_media_type, webm_opus
S12 twin three videos 200 400 Tuple should have at most 2 items after validation, not 3 live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt too_many_videos
H9, H10 twins text only, audio: [] 200, 235 and 140 tokens 200, same answers and token counts as base live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt text_only, live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.hostile.txt audio_empty_list
N4 twin GET /model/info no media flags supports_audio_input and supports_video_input true on clef-omni, null on clef-flash live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.run.txt model_info
S17 twin no Authorization header 401 No api key passed in 401, identical live/05843fbae77a035467a607fa1795c232f8e83aa9/after6.hostile.txt unauthenticated_media

Type

🆕 New Feature

Caveats (if any)

Medium

Low

  • audio and videos on /v1/decisions are a LiteLLM extension, not an OpenAI field
  • Cloudflare's decoded-byte, duration, and combined-size limits are not pre-checked, so an oversize clip surfaces as Cloudflare's own error
  • A data URL whose media type carries parameters, or one that is uppercase, line-wrapped, or missing ;base64, is refused with the pattern message rather than a hint to use the object form, which takes parameters
  • Whether a model takes clips now comes from the cost map, so a proxy on an older remote map (or a custom local map without the flags) refuses clips on Clef-omni until its map carries them
  • A text-only Decisions request now reads the two media flags from the cost map as well (up to four lookups, each caught for an unmapped custom model), on top of the pricing lookup it already made
  • supports_video_input now shows in get_model_info and GET /model/info for every cost-map entry that carries it, next to supports_audio_input, which was already surfaced
  • A misspelled clip key (audios, video) passes as an unknown key instead of a 400, the same as any unknown key on a Decisions body today
  • A deployment that opts into the media flags through model_info on a map without the Clef-omni rows has to use the canonical cloudflare/@cf/cloudflare/clef-omni name, since the gate reads that key: on the short cloudflare/clef-omni alias the flags show in GET /model/info but clips still answer the 400
  • Base64 clips land in spend logs when request logging is on and reach custom callbacks in the raw request body, the same as base64 input_image today
  • The docs page for Clef-omni media goes to the docs repo as a follow-up

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

  • e854b20 passes /live-pr-risk

  • 05843fb passes /audit (round 3 of 3 at the tip; round 2 passed at e854b20)

@CLAassistant

CLAassistant commented Oct 10, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ mateo-berri
❌ moyai-devin-berriai[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue remains.

Summary

Adds Clef-omni audio and video support through the SDK and all four Decisions proxy routes.

  • Clef-omni requests can include audio and video clips.
  • Clef-omni has pricing under both Cloudflare model names.

Reviews (4) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

greptile-apps[bot]

This comment was marked as resolved.

@codspeed

codspeed Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing moyai/93db5ceefaad/f010a9a6813f5f1e (05843fb) with main (19327a6)

Open in CodSpeed

…10a9a6813f5f1e

# Conflicts:
#	litellm/types/decisions.py
…r the proxy routes

The clip patterns now mirror Cloudflare's input schema, so a data URL or
content_type carrying parameters like audio/webm;codecs=opus is accepted.
The four proxy routes get media tests of their own, the backup cost map
is synced with the new Clef-omni rows, and the docs page moves to the
docs repo as a follow-up.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.75000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
litellm/llms/openai/decisions/transformation.py 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

… the OpenAPI snapshot

Cloudflare answers 422 to a data URL whose media type carries parameters even though its schema only requires the data:audio/ prefix, so LiteLLM now refuses those with a 400 before the call. The object form keeps passing parameters through, which Cloudflare accepts. The lazy OpenAPI snapshot and the dashboard API types are regenerated for the new audio and videos fields
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

greptile-apps[bot]

This comment was marked as resolved.

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…d decisions entry points and drop them under drop_params
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@devin-ai-integration devin-ai-integration Bot left a comment

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.

Devin Review found 2 potential issues.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Comment thread litellm/decisions/main.py Outdated
Comment on lines +124 to +125
audio: DecisionsAudioClips | None = None,
videos: DecisionsVideoClips | None = None,

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.

🔴 Positional credentials become audio clips

Existing positional decisions calls pass their API key as audio and fail validation before sending. adecisions has the same reordered parameters, so both public entry points break existing callers.

Learn more

Both public functions accepted api_key immediately after safety_identifier. Inserting audio and videos before it changes the binding of every later positional argument, even when the caller does not use media. The validator treats a positional key string as a clip sequence and raises a bad request before it can authenticate.

Example: decisions("openai/gpt-6-luna", "review", questions, None, "key") formerly used "key" for authentication. It now binds "key" to audio and rejects the call rather than reaching OpenAI.

Recommended fix: Preserve the original parameter order in both decisions and adecisions, appending the media parameters after extra_headers or making them keyword-only. Add a regression test using the original positional call form.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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.

Fixed in 7899bd9: audio and videos sit after extra_headers, so positional api_key and api_base keep their slots. A wire test pins the order

Comment on lines +375 to +379
def supports_audio_input(self, model: str, custom_llm_provider: str) -> bool:
return litellm.supports_audio_input(model=model, custom_llm_provider=custom_llm_provider)

def supports_video_input(self, model: str, custom_llm_provider: str) -> bool:
return litellm.supports_video_input(model=model, custom_llm_provider=custom_llm_provider)

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.

🔴 Chat capability flags misroute Decisions media

For openai/gpt-audio, supports_audio_input keeps clips even with drop_params=True. The OpenAI Decisions transformer then rejects them, so the request fails instead of dropping unsupported clips.

Learn more

The generic model capability map says whether a model accepts media on supported chat and other endpoints, not necessarily on Decisions. The new base methods reuse those flags to both retain media under drop_params and permit it through the provider gate. OpenAI's Decisions transformation unconditionally rejects nonempty audio or videos, while a System One provider that inherits the base transformation sends allowed media upstream without establishing that its Decisions endpoint supports it.

Example: The cost map marks gpt-audio as supporting audio input for chat. A Decisions request with an audio clip and drop_params=True retains the clip, then ir_to_openai_request returns an unsupported request and the caller receives a 400 instead of a text-only response.

Recommended fix: Make the Decisions-specific support check explicit in each provider config or require an evaluation-mode capability declaration for a Decisions model. In particular, make OpenAIDecisionsConfig return false for both media checks so drop_params drops media before its transformer runs. Check other System One providers against the endpoint they actually call.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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.

Fixed in 7899bd9 and e854b20: media support also needs a decisions or evaluation cost-map mode, so gpt-audio clips are dropped or refused first

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

1 similar comment
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 05843fb. Configure here.

@mateo-berri mateo-berri left a comment

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.

LGTM

@mateo-berri
mateo-berri merged commit a86ad9e into main Oct 12, 2026
107 checks passed
@mateo-berri
mateo-berri deleted the moyai/93db5ceefaad/f010a9a6813f5f1e branch October 12, 2026 20:29
mateo-berri added a commit that referenced this pull request Oct 15, 2026
…5734_46594_46596_rc_1_106_0

feat(decisions): backport #45474, #45811, #45734, #46594, and #46596 to rc/1.106.0
Cartofante pushed a commit to CartoDB/litellm that referenced this pull request Oct 19, 2026
* feat(decisions): support Clef-omni audio and video

* fix(decisions): accept Clef-omni media types with parameters and cover the proxy routes

The clip patterns now mirror Cloudflare's input schema, so a data URL or
content_type carrying parameters like audio/webm;codecs=opus is accepted.
The four proxy routes get media tests of their own, the backup cost map
is synced with the new Clef-omni rows, and the docs page moves to the
docs repo as a follow-up.

* fix(decisions): refuse parameterized media-type data URLs and refresh the OpenAPI snapshot

Cloudflare answers 422 to a data URL whose media type carries parameters even though its schema only requires the data:audio/ prefix, so LiteLLM now refuses those with a 400 before the call. The object form keeps passing parameters through, which Cloudflare accepts. The lazy OpenAPI snapshot and the dashboard API types are regenerated for the new audio and videos fields

* fix(decisions): gate media by cost-map flags, treat null clips as none, drop unsupported clips before validation

* fix(decisions): keep the SDK's positional order and gate media flags on evaluation-mode models

* fix(decisions): gate media on both decisions model modes and move the audit cells onto the harness helpers

* test(decisions): cover the Fireworks System One router in the media refusal cells

---------

Backport of BerriAI#45811 to rc/1.106.0
Cherry-picked from a86ad9e (main)

Co-authored-by: moyai-devin-berriai[bot] <336287033+moyai-devin-berriai[bot]@users.noreply.github.com>
Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants