29 lines
924 B
C#
29 lines
924 B
C#
using Volo.Abp.Caching;
|
|
using Volo.Abp.Domain;
|
|
using Yi.Framework.Stock.Domain.Shared;
|
|
using Yi.Framework.Mapster;
|
|
using Yi.Framework.Stock.Domain.Managers;
|
|
|
|
namespace Yi.Framework.Stock.Domain
|
|
{
|
|
[DependsOn(
|
|
typeof(YiFrameworkStockDomainSharedModule),
|
|
|
|
typeof(YiFrameworkMapsterModule),
|
|
typeof(AbpDddDomainModule),
|
|
typeof(AbpCachingModule)
|
|
)]
|
|
public class YiFrameworkStockDomainModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<SemanticKernelOptions>((options)=>{
|
|
options.Endpoint = "https://api.token-ai.cn/v1";
|
|
options.ApiKey = "sk-V6OqmrloXDAiTM2FWoisGgaop72Ngr0fXAnXL8";
|
|
options.ModelId = "gpt-4o-mini";
|
|
options.MaxTokens = 1000;
|
|
options.PluginsDirectoryPath = "plugins";
|
|
});
|
|
}
|
|
}
|
|
} |