feat: 支持图片生成
This commit is contained in:
@@ -5,6 +5,7 @@ using Yi.Framework.AiHub.Application.Contracts.Dtos.OpenAi;
|
|||||||
using Yi.Framework.AiHub.Domain.AiGateWay;
|
using Yi.Framework.AiHub.Domain.AiGateWay;
|
||||||
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorAzureDatabricks.Chats;
|
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorAzureDatabricks.Chats;
|
||||||
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorAzureOpenAI.Chats;
|
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorAzureOpenAI.Chats;
|
||||||
|
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorAzureOpenAI.Images;
|
||||||
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorDeepSeek.Chats;
|
using Yi.Framework.AiHub.Domain.AiGateWay.Impl.ThorDeepSeek.Chats;
|
||||||
using Yi.Framework.AiHub.Domain.Shared;
|
using Yi.Framework.AiHub.Domain.Shared;
|
||||||
using Yi.Framework.Mapster;
|
using Yi.Framework.Mapster;
|
||||||
@@ -31,6 +32,10 @@ namespace Yi.Framework.AiHub.Domain
|
|||||||
services.AddKeyedTransient<IChatCompletionService, DeepSeekChatCompletionsService>(
|
services.AddKeyedTransient<IChatCompletionService, DeepSeekChatCompletionsService>(
|
||||||
nameof(DeepSeekChatCompletionsService));
|
nameof(DeepSeekChatCompletionsService));
|
||||||
|
|
||||||
|
services.AddKeyedTransient<IImageService, AzureOpenAIServiceImageService>(
|
||||||
|
nameof(AzureOpenAIServiceImageService));
|
||||||
|
|
||||||
|
|
||||||
//ai模型特殊性兼容处理
|
//ai模型特殊性兼容处理
|
||||||
Configure<SpecialCompatibleOptions>(options =>
|
Configure<SpecialCompatibleOptions>(options =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user