Browse Source

Update OpenAIChatClient usage to the latest version

pull/23975/head
enisn 10 months ago
parent
commit
bc4133a7b1
No known key found for this signature in database GPG Key ID: A052619F04155D1C
  1. 5
      docs/en/modules/ai-management/index.md

5
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.
![ai-management-workspaces](../../images/ai-management-workspaces.png)
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")
);
});
});

Loading…
Cancel
Save