@@ -12,8 +12,9 @@ def __init__(
1212 deployment_name : str = None ,
1313 dimensions : int = None ,
1414 temperature : float = None ,
15+ embeddings_max_concurrent_batches : int = None ,
1516 ):
16- super ().__init__ (api_key , endpoint , model , dimensions , temperature )
17+ super ().__init__ (api_key , endpoint , model , dimensions , temperature , embeddings_max_concurrent_batches )
1718 if deployment_name is None :
1819 raise ValueError ("deployment_name cannot be None" )
1920 self .deployment_name = deployment_name
@@ -27,6 +28,9 @@ def from_json(cls, json_dict: Dict[str, Any]) -> "AzureOpenAiSettings":
2728 dimensions = json_dict ["Dimensions" ] if "Dimensions" in json_dict else None ,
2829 temperature = json_dict ["Temperature" ] if "Temperature" in json_dict else None ,
2930 deployment_name = json_dict ["DeploymentName" ] if "DeploymentName" in json_dict else None ,
31+ embeddings_max_concurrent_batches = (
32+ json_dict ["EmbeddingsMaxConcurrentBatches" ] if "EmbeddingsMaxConcurrentBatches" in json_dict else None
33+ ),
3034 )
3135
3236 def to_json (self ) -> Dict [str , Any ]:
@@ -37,4 +41,5 @@ def to_json(self) -> Dict[str, Any]:
3741 "Dimensions" : self .dimensions ,
3842 "Temperature" : self .temperature ,
3943 "DeploymentName" : self .deployment_name ,
44+ "EmbeddingsMaxConcurrentBatches" : self .embeddings_max_concurrent_batches ,
4045 }
0 commit comments