Skip to content

Commit 75b7ae2

Browse files
committed
Bug fix: _refresh_api_key not being invoked in case of Callable api key in azure openai
1 parent 847ff0b commit 75b7ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openai/lib/azure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOptions:
336336
# should never be hit
337337
raise ValueError("Unable to handle auth")
338338

339-
return options
339+
return super()._prepare_options(options)
340340

341341
def _configure_realtime(self, model: str, extra_query: Query) -> tuple[httpx.URL, dict[str, str]]:
342342
auth_headers = {}
@@ -619,7 +619,7 @@ async def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOp
619619
# should never be hit
620620
raise ValueError("Unable to handle auth")
621621

622-
return options
622+
return super()._prepare_options(options)
623623

624624
async def _configure_realtime(self, model: str, extra_query: Query) -> tuple[httpx.URL, dict[str, str]]:
625625
auth_headers = {}

0 commit comments

Comments
 (0)