diff --git a/spacy_llm/models/rest/azure/model.py b/spacy_llm/models/rest/azure/model.py index a30173ff..a5000d9b 100644 --- a/spacy_llm/models/rest/azure/model.py +++ b/spacy_llm/models/rest/azure/model.py @@ -48,7 +48,8 @@ def endpoint(self) -> str: return ( self._endpoint + ("" if self._endpoint.endswith("/") else "/") - + f"openai/deployments/{self._name}/{self._model_type.value}" + + f"openai/deployments/{self._name}/{'' if self._model_type == ModelType.COMPLETION else 'chat/'}" + f"completions" ) @property