From 5b1d61f8f9b4fecd603e3298062e3f57b52ad73a Mon Sep 17 00:00:00 2001 From: weizhou88 <117541284+weizhou88@users.noreply.github.com> Date: Mon, 3 Jun 2024 07:58:34 +0800 Subject: [PATCH] Update azure_openai_pipeline.py --- examples/pipelines/providers/azure_openai_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pipelines/providers/azure_openai_pipeline.py b/examples/pipelines/providers/azure_openai_pipeline.py index 92ef3ad..4c7e9e3 100644 --- a/examples/pipelines/providers/azure_openai_pipeline.py +++ b/examples/pipelines/providers/azure_openai_pipeline.py @@ -48,7 +48,7 @@ class Pipeline: "Content-Type": "application/json", } - url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.DEPLOYMENT_NAME}/chat/completions?api-version={self.valves.API_VERSION}" + url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.DEPLOYMENT_NAME}/completions?api-version={self.valves.API_VERSION}" try: r = requests.post(