30 lines
979 B
C#
30 lines
979 B
C#
using xAiApi.Interfaces;
|
|
using xCommons.Providers;
|
|
using xCommons.Configurations;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using xIdentityService.Interfaces;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
namespace xAiApi.Controllers
|
|
{
|
|
[Authorize]
|
|
[Route("[controller]")]
|
|
public class DefaultEmbeddingController : XAiEmbeddingServiceControllerBase<IXAiEmbeddingService>
|
|
{
|
|
public DefaultEmbeddingController(
|
|
ILogger<DefaultEmbeddingController> logger,
|
|
IXAiEmbeddingService embeddingService,
|
|
XAppConfiguration appConfiguration,
|
|
IXIdentityProvider identityProvider,
|
|
XValidationProvider validationProvider
|
|
) : base(
|
|
logger: logger,
|
|
appConfiguration: appConfiguration,
|
|
identityProvider: identityProvider,
|
|
embeddingService: embeddingService,
|
|
validationProvider: validationProvider
|
|
)
|
|
{ }
|
|
}
|
|
} |