File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
vllm_omni/entrypoints/openai Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
22# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3+ import json
34import multiprocessing
45import multiprocessing .forkserver as forkserver
56import os
6- import json
77
88# Image generation API imports
99import time
Original file line number Diff line number Diff line change 77from __future__ import annotations
88
99import base64
10- from io import BytesIO
1110import os
1211import tempfile
12+ from io import BytesIO
1313from typing import Any
1414
1515import numpy as np
1616import torch
1717from PIL import Image
1818
1919
20- def decode_input_reference (
21- input_reference : str | None , input_reference_bytes : bytes | None
22- ) -> Image .Image | None :
20+ def decode_input_reference (input_reference : str | None , input_reference_bytes : bytes | None ) -> Image .Image | None :
2321 """Decode image input from multipart bytes or base64/data URL."""
2422 if input_reference and input_reference_bytes :
2523 raise ValueError ("Provide input_reference either as file upload or base64, not both." )
You can’t perform that action at this time.
0 commit comments