Skip to content

Commit

Permalink
fix: azure
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jun 3, 2024
1 parent f5eb8e5 commit d0cf5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pipelines/providers/azure_openai_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def pipe(
"Content-Type": "application/json",
}

url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.DEPLOYMENT_NAME}/completions?api-version={self.valves.API_VERSION}"
url = f"{self.valves.AZURE_OPENAI_ENDPOINT}/openai/deployments/{self.valves.DEPLOYMENT_NAME}/chat/completions?api-version={self.valves.API_VERSION}"

try:
r = requests.post(
Expand Down

0 comments on commit d0cf5b7

Please sign in to comment.