File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ async def async_request_openai_completions(
225
225
) -> RequestFuncOutput :
226
226
api_url = request_func_input .api_url
227
227
assert api_url .endswith (
228
- "v1/ completions"
229
- ), "OpenAI Completions API URL must end with 'v1/ completions'."
228
+ "completions"
229
+ ), "OpenAI Completions API URL must end with 'completions'."
230
230
231
231
async with aiohttp .ClientSession (timeout = AIOHTTP_TIMEOUT ) as session :
232
232
assert not request_func_input .use_beam_search
@@ -304,8 +304,8 @@ async def async_request_openai_chat_completions(
304
304
) -> RequestFuncOutput :
305
305
api_url = request_func_input .api_url
306
306
assert api_url .endswith (
307
- "v1/ chat/completions"
308
- ), "OpenAI Chat Completions API URL must end with 'v1/ chat/completions'."
307
+ "chat/completions"
308
+ ), "OpenAI Chat Completions API URL must end with 'chat/completions'."
309
309
310
310
async with aiohttp .ClientSession (timeout = AIOHTTP_TIMEOUT ) as session :
311
311
assert not request_func_input .use_beam_search
You can’t perform that action at this time.
0 commit comments