diff --git a/AiServer.ServiceInterface/OpenAiChatServices.cs b/AiServer.ServiceInterface/OpenAiChatServices.cs index 42891de..1ffa9a0 100644 --- a/AiServer.ServiceInterface/OpenAiChatServices.cs +++ b/AiServer.ServiceInterface/OpenAiChatServices.cs @@ -326,7 +326,7 @@ public async Task Get(GetOpenAiChatStatus request) public object Any(GetActiveProviders request) => new GetActiveProvidersResponse { - Results = appData.AiProviders + Results = appData.AiProviders.ToList() }; public async Task Any(ChatAiProvider request) diff --git a/AiServer.ServiceModel/OpenAiChatServer.cs b/AiServer.ServiceModel/OpenAiChatServer.cs index dd54209..e2cd5bf 100644 --- a/AiServer.ServiceModel/OpenAiChatServer.cs +++ b/AiServer.ServiceModel/OpenAiChatServer.cs @@ -106,7 +106,7 @@ public class GetActiveProviders : IGet, IReturn {} public class GetActiveProvidersResponse { - public AiProvider[] Results { get; set; } + public List Results { get; set; } = []; public ResponseStatus? ResponseStatus { get; set; } }