mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
using Microsoft.Extensions.AI;
|
|
using Volo.Abp.AI;
|
|
using Volo.Abp.AI.Mocks;
|
|
using Volo.Abp.AI.Tests.Workspaces;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace Volo.Abp.AutoMapper;
|
|
|
|
[DependsOn(
|
|
typeof(AbpTestBaseModule),
|
|
typeof(AbpAIModule)
|
|
)]
|
|
public class AbpAITestModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<AbpAIWorkspaceOptions>(options =>
|
|
{
|
|
options.Workspaces.ConfigureDefault(options =>
|
|
{
|
|
options.ConfigureChatClient(clientOptions =>
|
|
{
|
|
clientOptions.Builder = new ChatClientBuilder(new MockDefaultChatClient());
|
|
});
|
|
});
|
|
|
|
options.Workspaces.Configure<WordCounter>(workspaceOptions =>
|
|
{
|
|
workspaceOptions.ConfigureChatClient(clientOptions =>
|
|
{
|
|
clientOptions.Builder = new ChatClientBuilder(new MockChatClient());
|
|
});
|
|
});
|
|
});
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
}
|
|
}
|
|
|