From 8d0de2e173f8a26ff7f1b6450ccbec132325afab Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Tue, 26 Nov 2024 09:50:31 +1100 Subject: [PATCH] Replace arrays with List --- AiServer.ServiceInterface/OpenAiChatServices.cs | 2 +- AiServer.ServiceModel/OpenAiChatServer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AiServer.ServiceInterface/OpenAiChatServices.cs b/AiServer.ServiceInterface/OpenAiChatServices.cs index f06d0db..5eaa877 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 fa223a1..8f038a0 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; } }