[CI] Fix base url doesn't strip "/" (#6087)

This commit is contained in:
SangBin Cho
2024-07-03 13:31:25 +09:00
committed by GitHub
parent 9831aec49f
commit d18bab3587

View File

@ -606,7 +606,7 @@ async def test_guided_decoding_type_error(client: openai.AsyncOpenAI,
[MODEL_NAME],
)
async def test_tokenize(client: openai.AsyncOpenAI, model_name: str):
base_url = str(client.base_url)[:-3]
base_url = str(client.base_url)[:-3].strip("/")
tokenizer = get_tokenizer(tokenizer_name=MODEL_NAME, tokenizer_mode="fast")
for add_special in [False, True]: