@@ -30,10 +30,8 @@ def ml_capability_host_config(self):
30
30
# [END load_capability_host]
31
31
32
32
# [START capability_host_object_create]
33
- from azure .ai .ml .entities ._workspace ._ai_workspaces .capability_host import (
34
- CapabilityHost ,
35
- )
36
33
from azure .ai .ml .constants ._workspace import CapabilityHostKind
34
+ from azure .ai .ml .entities ._workspace ._ai_workspaces .capability_host import CapabilityHost
37
35
38
36
# CapabilityHost in Hub workspace. For Hub workspace, only name and description are required.
39
37
capability_host = CapabilityHost (
@@ -50,16 +48,15 @@ def ml_capability_host_config(self):
50
48
ai_services_connections = ["connection1" ],
51
49
storage_connections = ["projectname/workspaceblobstore" ],
52
50
vector_store_connections = ["connection1" ],
51
+ thread_storage_connections = ["connection1" ],
53
52
)
54
53
# [END capability_host_object_create]
55
54
56
55
# [START capability_host_begin_create_or_update_operation]
57
56
from azure .ai .ml import MLClient
58
- from azure .identity import DefaultAzureCredential
59
- from azure .ai .ml .entities ._workspace ._ai_workspaces .capability_host import (
60
- CapabilityHost ,
61
- )
62
57
from azure .ai .ml .constants ._workspace import CapabilityHostKind
58
+ from azure .ai .ml .entities ._workspace ._ai_workspaces .capability_host import CapabilityHost
59
+ from azure .identity import DefaultAzureCredential
63
60
64
61
subscription_id = os .environ ["AZURE_SUBSCRIPTION_ID" ]
65
62
resource_group = os .environ ["RESOURCE_GROUP_NAME" ]
0 commit comments