Browse Source
Update OpenAIChatClient usage to the latest version
pull/23975/head
enisn
10 months ago
No known key found for this signature in database
GPG Key ID: A052619F04155D1C
1 changed files with
2 additions and
3 deletions
-
docs/en/modules/ai-management/index.md
|
|
|
@ -53,7 +53,6 @@ AI Management module adds the following items to the "Main" menu, under the "Adm |
|
|
|
|
|
|
|
Workspaces page is used to manage AI workspaces in the system. You can create, edit, duplicate, and delete workspaces. |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
You can create a new workspace or edit an existing workspace in this page. The workspace configuration includes: |
|
|
|
|
|
|
|
@ -126,7 +125,7 @@ PreConfigure<AbpAIWorkspaceOptions>(options => |
|
|
|
configuration.ConfigureChatClient(chatClientConfiguration => |
|
|
|
{ |
|
|
|
chatClientConfiguration.Builder = new ChatClientBuilder( |
|
|
|
sp => new OpenAIClient(apiKey).AsChatClient("gpt-4") |
|
|
|
sp => new OpenAIClient(apiKey).GetChatClient("gpt-4") |
|
|
|
); |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -227,7 +226,7 @@ public class YourModule : AbpModule |
|
|
|
configuration.ConfigureChatClient(chatClientConfiguration => |
|
|
|
{ |
|
|
|
chatClientConfiguration.Builder = new ChatClientBuilder( |
|
|
|
sp => new OpenAIClient(apiKey).AsChatClient("gpt-4") |
|
|
|
sp => new OpenAIClient(apiKey).GetChatClient("gpt-4") |
|
|
|
); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|