Skip to content

Commit

Permalink
remove unused comments
Browse files Browse the repository at this point in the history
  • Loading branch information
w5688414 committed Feb 26, 2024
1 parent 5da2d8b commit e14086b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion erniebot/src/erniebot/backends/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,5 @@ def _add_aistudio_fields_to_headers(self, headers: HeadersType) -> HeadersType:
"Key 'Authorization' already exists in `headers`: %r",
headers["Authorization"],
)
# headers["Authorization"] = f"token {self._access_token}"
headers["Authorization"] = f"{self._access_token}"
return headers
1 change: 0 additions & 1 deletion erniebot/src/erniebot/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ def _interpret_response_line(
)

logging.debug("Decoded response body: %r", decoded_rbody)
breakpoint()
response = EBResponse(rcode=rcode, rbody=decoded_rbody, rheaders=dict(rheaders))
if rcode != http.HTTPStatus.OK:
raise errors.HTTPRequestError(
Expand Down

0 comments on commit e14086b

Please sign in to comment.