Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
trisongz committed Jan 5, 2024
1 parent d844769 commit 7fd012a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions async_openai/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def __getitem__(self, key: Union[str, int]) -> 'OpenAIClient':
'gpt-3.5-turbo-instruct': 'gpt-35-turbo-instruct',
'gpt-3.5-turbo-0301': 'gpt-35-turbo-0301',
'gpt-3.5-turbo-0613': 'gpt-35-turbo-0613',
'gpt-3.5-turbo-1106': 'gpt-35-turbo-1106',
}

class OpenAIMetaClass(type):
Expand Down
3 changes: 2 additions & 1 deletion async_openai/types/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ async def _async_send(
"""

if timeout is None: timeout = self.timeout
if self.debug_enabled: logger.info(f'[{self.name} - {method} - {url}] headers: {headers}, params: {params}, data: {data}')
# if self.debug_enabled: logger.info(f'[{self.name} - {method} - {url}] headers: {headers}, params: {params}, data: {data}')
request = await self.client.async_build_request(
method = method,
url = url,
Expand All @@ -955,6 +955,7 @@ async def _async_send(
timeout = timeout,
**kwargs
)
if self.debug_enabled: logger.info(f'[{self.name} - {method} - {url}] headers: {request.headers}, params: {params}, data: {data}')
request_func = self.client.async_send
if self.retry_function is not None:
request_func = self.retry_function(request_func)
Expand Down
2 changes: 1 addition & 1 deletion async_openai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.0.41rc8'
VERSION = '0.0.42'

0 comments on commit 7fd012a

Please sign in to comment.