Signed-off-by: Chenguang ZHENG <645327136@qq.com> Signed-off-by: yinpeiqi <yinpeiqi809@gmail.com> Co-authored-by: yinpeiqi <yinpeiqi809@gmail.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
27 lines
700 B
Python
27 lines
700 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
"""
|
|
OpenAI-compatible API entrypoints for vLLM-Omni.
|
|
|
|
Provides:
|
|
- omni_run_server: Main server entry point (auto-detects model type)
|
|
- OmniOpenAIServingChat: Unified chat completion handler for both LLM and diffusion models
|
|
"""
|
|
|
|
from vllm_omni.entrypoints.openai.api_server import (
|
|
build_async_omni,
|
|
omni_init_app_state,
|
|
omni_run_server,
|
|
)
|
|
from vllm_omni.entrypoints.openai.serving_chat import OmniOpenAIServingChat
|
|
|
|
__all__ = [
|
|
# Server functions
|
|
"omni_run_server",
|
|
"build_async_omni",
|
|
"omni_init_app_state",
|
|
# Serving classes
|
|
"OmniOpenAIServingChat",
|
|
]
|