Skip to content

Commit b8656c1

Browse files
SelimWalymegamanics
authored andcommitted
Fix Azure Ad Token Function's Return (openai#1460)
Identify returned "token" as string.
1 parent c04420d commit b8656c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/openai/lib/azure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ async def _get_azure_ad_token(self) -> str | None:
519519
raise ValueError(
520520
f"Expected `azure_ad_token_provider` argument to return a string but it returned {token}",
521521
)
522-
return token
522+
return str(token)
523523

524524
return None
525525

0 commit comments

Comments
 (0)