fix: azure

This commit is contained in:
Timothy J. Baek 2024-06-02 18:07:04 -07:00
parent f5eb8e5a44
commit d0cf5b7bcb

View File

@ -48,7 +48,7 @@ class Pipeline:
"Content-Type": "application/json", "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: try:
r = requests.post( r = requests.post(