From 7fd012abdd2d6c48c1fdb484e10202be64ee97ea Mon Sep 17 00:00:00 2001 From: trisongz <4735784+trisongz@users.noreply.github.com> Date: Fri, 5 Jan 2024 11:38:57 -0600 Subject: [PATCH] minor updates --- async_openai/meta.py | 1 + async_openai/types/routes.py | 3 ++- async_openai/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/async_openai/meta.py b/async_openai/meta.py index 218d0c8..3d8c3da 100644 --- a/async_openai/meta.py +++ b/async_openai/meta.py @@ -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): diff --git a/async_openai/types/routes.py b/async_openai/types/routes.py index 60376d8..04358ce 100644 --- a/async_openai/types/routes.py +++ b/async_openai/types/routes.py @@ -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, @@ -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) diff --git a/async_openai/version.py b/async_openai/version.py index 7891b35..0a31f9b 100644 --- a/async_openai/version.py +++ b/async_openai/version.py @@ -1 +1 @@ -VERSION = '0.0.41rc8' \ No newline at end of file +VERSION = '0.0.42' \ No newline at end of file