Skip to content

Commit

Permalink
Fix Azure Ad Token Function's Return (#1460)
Browse files Browse the repository at this point in the history
Identify returned "token" as string.
  • Loading branch information
SelimWaly authored and stainless-app[bot] committed Jun 3, 2024
1 parent e872382 commit 89dee3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openai/lib/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ async def _get_azure_ad_token(self) -> str | None:
raise ValueError(
f"Expected `azure_ad_token_provider` argument to return a string but it returned {token}",
)
return token
return str(token)

return None

Expand Down

0 comments on commit 89dee3f

Please sign in to comment.