This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- macro json_to_python_type(json_spec) %} | |
{%- set basic_type_map = { | |
"string": "str", | |
"number": "float", | |
"integer": "int", | |
"boolean": "bool" | |
} %} | |
{%- if basic_type_map[json_spec.type] is defined %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Made by @Braunworks | |
import re | |
import json | |
from typing import Sequence, Any, Union | |
from vllm.entrypoints.openai.protocol import ( | |
ChatCompletionRequest, | |
DeltaFunctionCall, | |
DeltaMessage, | |
DeltaToolCall, |