[ez] move harmony utils to parser folder (#30117)
Signed-off-by: Andrew Xia <axia@fb.com> Co-authored-by: Andrew Xia <axia@fb.com>
This commit is contained in:
0
tests/entrypoints/openai/parser/__init__.py
Normal file
0
tests/entrypoints/openai/parser/__init__.py
Normal file
@@ -4,7 +4,7 @@
|
||||
from openai.types.responses import ResponseFunctionToolCall, ResponseReasoningItem
|
||||
from openai_harmony import Author, Message, Role, TextContent
|
||||
|
||||
from vllm.entrypoints.harmony_utils import (
|
||||
from vllm.entrypoints.openai.parser.harmony_utils import (
|
||||
has_custom_tools,
|
||||
parse_input_to_harmony_message,
|
||||
parse_output_message,
|
||||
@@ -726,7 +726,7 @@ async def test_function_calling_required(client: OpenAI, model_name: str):
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize("model_name", [MODEL_NAME])
|
||||
async def test_system_message_with_tools(client: OpenAI, model_name: str):
|
||||
from vllm.entrypoints.harmony_utils import get_system_message
|
||||
from vllm.entrypoints.openai.parser.harmony_utils import get_system_message
|
||||
|
||||
# Test with custom tools enabled - commentary channel should be available
|
||||
sys_msg = get_system_message(with_custom_tools=True)
|
||||
|
||||
Reference in New Issue
Block a user