Remove IApiAdapter.
This commit is contained in:
parent
b3311a1917
commit
56224d16c8
|
|
@ -1,5 +0,0 @@
|
|||
namespace BotSharp.Abstraction.ApiAdapters;
|
||||
|
||||
public interface IApiAdapter
|
||||
{
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class AgentController : ControllerBase, IApiAdapter
|
||||
public class AgentController : ControllerBase
|
||||
{
|
||||
private readonly IAgentService _agentService;
|
||||
private readonly IServiceProvider _services;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class ConversationController : ControllerBase, IApiAdapter
|
||||
public class ConversationController : ControllerBase
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly IUserIdentity _user;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class EvaluationController : ControllerBase, IApiAdapter
|
||||
public class EvaluationController : ControllerBase
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
public EvaluationController(IServiceProvider services)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class InstructModeController : ControllerBase, IApiAdapter
|
||||
public class InstructModeController : ControllerBase
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class KnowledgeController : ControllerBase, IApiAdapter
|
||||
public class KnowledgeController : ControllerBase
|
||||
{
|
||||
private readonly IKnowledgeService _knowledgeService;
|
||||
private readonly IServiceProvider _services;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ namespace BotSharp.OpenAPI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class UserController : ControllerBase, IApiAdapter
|
||||
public class UserController : ControllerBase
|
||||
{
|
||||
private readonly IUserService _userService;
|
||||
public UserController(IUserService userService)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ global using BotSharp.Abstraction.Utilities;
|
|||
global using BotSharp.Abstraction.Agents.Settings;
|
||||
global using BotSharp.Abstraction.Conversations.Settings;
|
||||
global using BotSharp.Abstraction.Agents.Enums;
|
||||
global using BotSharp.Abstraction.ApiAdapters;
|
||||
global using BotSharp.Abstraction.Conversations.Enums;
|
||||
global using BotSharp.Abstraction.Conversations.Models;
|
||||
global using BotSharp.Abstraction.Models;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
using BotSharp.Abstraction.ApiAdapters;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace BotSharp.Plugin.ChatHub.Controllers;
|
||||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class ChatHubController : ControllerBase, IApiAdapter
|
||||
public class ChatHubController : ControllerBase
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger _logger;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using BotSharp.Abstraction.ApiAdapters;
|
||||
using BotSharp.Plugin.ChatbotUI.ViewModels;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using BotSharp.Abstraction.Conversations;
|
||||
|
|
@ -22,7 +21,7 @@ namespace BotSharp.Plugin.ChatbotUI.Controllers;
|
|||
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class ChatbotUiController : ControllerBase, IApiAdapter
|
||||
public class ChatbotUiController : ControllerBase
|
||||
{
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger<ChatbotUiController> _logger;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
using BotSharp.Abstraction.ApiAdapters;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
|
@ -8,7 +7,7 @@ using BotSharp.Abstraction.TextGeneratives;
|
|||
|
||||
namespace BotSharp.Plugin.HuggingFace.HuggingChat;
|
||||
|
||||
public class HuggingChatController : ControllerBase, IApiAdapter
|
||||
public class HuggingChatController : ControllerBase
|
||||
{
|
||||
public HuggingChatController()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue