Skip to content

Commit c26a2da

Browse files
committed
Merge branch 'rel-10.0' of https://github.com/abpframework/abp into rel-10.0
2 parents fd4ffad + ace1e9b commit c26a2da

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

docs/en/modules/ai-management/index.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ AI Management module packages are designed for various usage scenarios. Packages
3232

3333
### Menu Items
3434

35-
AI Management module adds the following items to the "Main" menu, under the "Administration" menu item:
35+
AI Management module adds the following items to the "Main" menu:
3636

37-
* **Workspaces**: Workspace management page.
38-
* **Chat**: AI chat interface for testing workspaces.
37+
* **AI Management**: Root menu item for AI Management module. (`AIManagement`)
38+
* **Workspaces**: Workspace management page. (`AIManagement.Workspaces`)
3939

4040
`AIManagementMenus` class has the constants for the menu item names.
4141

@@ -135,14 +135,15 @@ PreConfigure<AbpAIWorkspaceOptions>(options =>
135135
Example (data seeding):
136136

137137
```csharp
138-
await _workspaceRepository.InsertAsync(new Workspace(
138+
var workspace = new Workspace(
139139
name: "CustomerSupportWorkspace",
140140
provider: "OpenAI",
141141
modelName: "gpt-4",
142-
apiKey: "your-api-key",
143-
systemPrompt: "You are a helpful customer support assistant.",
144-
requiredPermissionName: "MyApp.CustomerSupport"
145-
));
142+
apiKey: "your-api-key"
143+
);
144+
workspace.ApplicationName = ApplicationInfoAccessor.ApplicationName;
145+
workspace.SystemPrompt = "You are a helpful customer support assistant.";
146+
await _workspaceRepository.InsertAsync(workspace);
146147
```
147148

148149
### Workspace Naming Rules
@@ -155,20 +156,13 @@ await _workspaceRepository.InsertAsync(new Workspace(
155156

156157
The AI Management module defines the following permissions:
157158

158-
### Workspace Management Permissions
159-
160159
| Permission | Description | Default Granted To |
161160
|------------|-------------|-------------------|
162161
| `AIManagement.Workspaces` | View workspaces | Admin role |
163162
| `AIManagement.Workspaces.Create` | Create new workspaces | Admin role |
164163
| `AIManagement.Workspaces.Update` | Edit existing workspaces | Admin role |
165164
| `AIManagement.Workspaces.Delete` | Delete workspaces | Admin role |
166165

167-
### Chat Permissions
168-
169-
| Permission | Description | Default Granted To |
170-
|------------|-------------|-------------------|
171-
| `AIManagement.Chat` | Access chat interface | Admin role |
172166

173167
### Workspace-Level Permissions
174168

@@ -184,9 +178,8 @@ var workspace = new Workspace(
184178
```
185179

186180
When a workspace has a required permission:
187-
* Only users with that permission can access the workspace
181+
* Only authorized users with that permission can access the workspace endpoints
188182
* Users without the permission will receive an authorization error
189-
* The workspace will not appear in the workspace selection dropdown for unauthorized users
190183

191184
## Usage Scenarios
192185

0 commit comments

Comments
 (0)