fix(managed_files.py): apply decoded file id transformation

This commit is contained in:
Krrish Dholakia 2025-04-11 12:18:04 -07:00
parent 4993d9aa50
commit 59fdb7f59a
3 changed files with 68 additions and 32 deletions

View file

@ -0,0 +1,19 @@
import json
import os
import sys
import pytest
from fastapi.testclient import TestClient
sys.path.insert(
0, os.path.abspath("../../../..")
) # Adds the parent directory to the system path
from litellm.proxy.hooks.managed_files import _PROXY_LiteLLMManagedFiles
# def test_get_file_ids_and_decode_b64_to_unified_uid_from_messages():
# proxy_managed_files = _PROXY_LiteLLMManagedFiles()
# messages = [
# {
# "role": "user",
# "content": [