Skip to content

Commit

Permalink
Update spacy_llm/models/rest/azure/model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rmitsch authored Oct 20, 2023
1 parent 5b04379 commit 97e13ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spacy_llm/models/rest/azure/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def endpoint(self) -> str:
return (
self._endpoint
+ ("" if self._endpoint.endswith("/") else "/")
+ f"openai/deployments/{self._name}/"+("" if self._model_type.value == "completions" else "chat/")+"completions"
+ f"openai/deployments/{self._name}/{'' if self._model_type == ModelType.COMPLETION else 'chat/'}"
f"completions"
)

@property
Expand Down

0 comments on commit 97e13ff

Please sign in to comment.