Format code (#441)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""Conversion between OpenAI APIs and native SRT APIs"""
|
||||
|
||||
import json
|
||||
import os
|
||||
|
||||
@@ -31,9 +32,9 @@ from sglang.srt.openai_protocol import (
|
||||
)
|
||||
from sglang.srt.utils import jsonify_pydantic_model
|
||||
|
||||
|
||||
chat_template_name = None
|
||||
|
||||
|
||||
def load_chat_template_for_openai_api(chat_template_arg):
|
||||
global chat_template_name
|
||||
|
||||
@@ -353,4 +354,4 @@ def to_openai_style_logprobs(
|
||||
if decode_top_logprobs is not None:
|
||||
append_top_logprobs(decode_top_logprobs)
|
||||
|
||||
return ret_logprobs
|
||||
return ret_logprobs
|
||||
|
||||
Reference in New Issue
Block a user