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(
225225) -> RequestFuncOutput :
226226 api_url = request_func_input .api_url
227227 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'."
230230
231231 async with aiohttp .ClientSession (timeout = AIOHTTP_TIMEOUT ) as session :
232232 assert not request_func_input .use_beam_search
@@ -304,8 +304,8 @@ async def async_request_openai_chat_completions(
304304) -> RequestFuncOutput :
305305 api_url = request_func_input .api_url
306306 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'."
309309
310310 async with aiohttp .ClientSession (timeout = AIOHTTP_TIMEOUT ) as session :
311311 assert not request_func_input .use_beam_search
You can’t perform that action at this time.
0 commit comments