Skip to content

Commit

Permalink
Monger Backward Compatibility Support
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamcode1994 committed Oct 5, 2023
1 parent f1ab5f2 commit d3c1297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions numexa/api_resources/base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def post(
) -> Union[ResponseT, StreamT]:
if path in [NumexaApiPaths.CHAT_COMPLETION, NumexaApiPaths.COMPLETION]:
body = cast(List[Body], body)
opts = self._construct(
# todo: change _construct_direct to _construct
opts = self._construct_direct(
method="post",
url=path,
body=body,
Expand Down Expand Up @@ -391,7 +392,8 @@ def _request(
) -> Union[ResponseT, StreamT]:
# proxy on
if not os.environ.get("NUMEXA_PROXY"):
request_list = self._build_request(options)
# todo: change _build_request_direct to _build_request
request_list = self._build_request_direct(options)
# proxy off
else:
request_list = self._build_request_direct(options)
Expand Down

0 comments on commit d3c1297

Please sign in to comment.