Format code (#441)

This commit is contained in:
Liangsheng Yin
2024-05-14 22:40:46 +08:00
committed by GitHub
parent 664287b2a7
commit 690d162d97
17 changed files with 68 additions and 50 deletions

View File

@@ -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