mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-15 09:23:57 +00:00
### Description Fix #14069 ### Twitter handle [lin_bob57617](https://twitter.com/lin_bob57617)
This commit is contained in:
parent
9938086df0
commit
62505043be
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import warnings
|
import warnings
|
||||||
from typing import Any, Dict, Union
|
from typing import Any, Callable, Dict, Union
|
||||||
|
|
||||||
from langchain_core.outputs import ChatResult
|
from langchain_core.outputs import ChatResult
|
||||||
from langchain_core.pydantic_v1 import BaseModel, Field, root_validator
|
from langchain_core.pydantic_v1 import BaseModel, Field, root_validator
|
||||||
@ -80,7 +80,7 @@ class AzureChatOpenAI(ChatOpenAI):
|
|||||||
For more:
|
For more:
|
||||||
https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
|
https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
azure_ad_token_provider: Union[str, None] = None
|
azure_ad_token_provider: Union[Callable[[], str], None] = None
|
||||||
"""A function that returns an Azure Active Directory token.
|
"""A function that returns an Azure Active Directory token.
|
||||||
|
|
||||||
Will be invoked on every request.
|
Will be invoked on every request.
|
||||||
|
@ -782,7 +782,7 @@ class AzureOpenAI(BaseOpenAI):
|
|||||||
For more:
|
For more:
|
||||||
https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
|
https://www.microsoft.com/en-us/security/business/identity-access/microsoft-entra-id.
|
||||||
""" # noqa: E501
|
""" # noqa: E501
|
||||||
azure_ad_token_provider: Union[str, None] = None
|
azure_ad_token_provider: Union[Callable[[], str], None] = None
|
||||||
"""A function that returns an Azure Active Directory token.
|
"""A function that returns an Azure Active Directory token.
|
||||||
|
|
||||||
Will be invoked on every request.
|
Will be invoked on every request.
|
||||||
|
Loading…
Reference in New Issue
Block a user