We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent effccc6 commit 519bc7eCopy full SHA for 519bc7e
api/core/model_runtime/model_providers/openai_api_compatible/llm/llm.py
@@ -333,6 +333,8 @@ def _generate(
333
endpoint_url = credentials["endpoint_url"]
334
if not endpoint_url.endswith("/"):
335
endpoint_url += "/"
336
+ if not endpoint_url.endswith("v1/"):
337
+ endpoint_url += "v1/"
338
339
data = {"model": model, "stream": stream, **model_parameters}
340
0 commit comments