mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(managed_files.py): apply decoded file id transformation
This commit is contained in:
parent
4993d9aa50
commit
59fdb7f59a
3 changed files with 68 additions and 32 deletions
19
tests/litellm/proxy/hooks/test_managed_files.py
Normal file
19
tests/litellm/proxy/hooks/test_managed_files.py
Normal 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": [
|
Loading…
Add table
Add a link
Reference in a new issue