Skip to content

Commit

Permalink
Remove redundant comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmitsch committed Oct 5, 2023
1 parent dce80b0 commit 7199e33
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions spacy_llm/models/rest/azure/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,6 @@ def _verify_auth(self) -> None:
self(["test"])
except ValueError as err:
raise err
# todo check and redo status codes
# - wrong token
# - ?
# if r.status_code == 422:
# warnings.warn(
# "Could not access api.openai.com -- 422 permission denied."
# "Visit https://platform.openai.com/account/api-keys to check your API keys."
# )
# elif r.status_code != 200:
# if "Incorrect API key" in r.text:
# warnings.warn(
# "Authentication with provided API key failed. Please double-check you provided the correct "
# "credentials."
# )
# else:
# warnings.warn(
# f"Error accessing api.openai.com ({r.status_code}): {r.text}"
# )

def __call__(self, prompts: Iterable[str]) -> Iterable[str]:
headers = {
Expand Down

0 comments on commit 7199e33

Please sign in to comment.