[Bugfix] Fix broken example opeanai client (#41088)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2026-04-28 04:43:04 +00:00
committed by GitHub
parent fd74c90d9c
commit c2e88a281c
3 changed files with 6 additions and 9 deletions
@@ -25,7 +25,6 @@ import os
import pybase64 as base64
import requests
from openai import OpenAI
from utils import get_first_model
from vllm.utils.argparse_utils import FlexibleArgumentParser
@@ -407,7 +406,7 @@ def parse_args():
def main(args) -> None:
chat_type = args.chat_type
model = get_first_model(client)
model = client.models.list().data[0].id
example_function_map[chat_type](model, args.max_completion_tokens)