Merge pull request #42 from weizhou88/patch-1

Update azure_openai_pipeline.py
This commit is contained in:
Timothy Jaeryang Baek 2024-06-02 17:01:39 -07:00 committed by GitHub
commit f5eb8e5a44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(