Skip to content

Commit f92156e

Browse files
committed
Update validation
1 parent 342d9f9 commit f92156e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graphrag/config/models/language_model_config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ def _validate_api_key(self) -> None:
6060
)
6161

6262
def _validate_auth_type(self) -> None:
63-
"""Validate the Azure authentication type.
63+
"""Validate the authentication type.
6464
65-
azure_auth_type is required when using Azure OpenAI
66-
and explicitly defines the authentication type to use.
65+
auth_type must be api_key when using OpenAI and
66+
can be either api_key or azure_managed_identity when using AOI.
6767
6868
Raises
6969
------
70-
AzureAuthTypeMissingError
71-
If the Azure authentication type is missing when required.
70+
ConflictingSettingsError
71+
If the Azure authentication type conflicts with the model being used.
7272
"""
7373
if self.auth_type == AuthType.AzureManagedIdentity and (
7474
self.type == LLMType.OpenAIChat or self.type == LLMType.OpenAIEmbedding

0 commit comments

Comments
 (0)