Skip to content

Commit 15d4555

Browse files
authored
making AI search property optional while creating capability host agent (#40412) (#40413)
1 parent 99c1ea6 commit 15d4555

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_capability_hosts_operations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,16 @@ def _validate_properties(self, capability_host: CapabilityHost, workspace_kind:
247247
:type capability_host: CapabilityHost
248248
:param workspace_kind: The kind of the workspace, Project only.
249249
:type workspace_kind: str
250-
:raises ~azure.ai.ml.exceptions.ValidationException: Raised if the OpenAI service connection or
251-
vector store (AISearch) connection is empty for a Project workspace kind.
250+
:raises ~azure.ai.ml.exceptions.ValidationException: Raised if the
251+
OpenAI service connection is empty for a Project workspace kind.
252252
Details will be provided in the error message.
253253
:return: None, or the result of cls(response)
254254
:rtype: None
255255
"""
256256

257257
if workspace_kind == WorkspaceKind.PROJECT:
258-
if capability_host.ai_services_connections is None or capability_host.vector_store_connections is None:
259-
msg = "For Project workspace kind, OpenAI service connections and vector store (AISearch) connections are required." # pylint: disable=line-too-long
258+
if capability_host.ai_services_connections is None:
259+
msg = "For Project workspace kind, OpenAI service connections are required."
260260
raise ValidationException(
261261
message=msg,
262262
target=ErrorTarget.CAPABILITY_HOST,

0 commit comments

Comments
 (0)