From 5cb46cd6fc67a3fa4500f77143bbddaaf4215ed9 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 21 Nov 2024 18:12:46 -0500 Subject: [PATCH] Update M.E.AI version to 9.0.1-preview.1.24570.5 --- src/OllamaApiClient.cs | 8 ++++---- src/OllamaSharp.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OllamaApiClient.cs b/src/OllamaApiClient.cs index 9d16e94..88d89b4 100644 --- a/src/OllamaApiClient.cs +++ b/src/OllamaApiClient.cs @@ -407,12 +407,12 @@ async Task>> IEmbeddingGenerator - TService? IChatClient.GetService(object? key) where TService : class - => key is null ? this as TService : null; + object? IChatClient.GetService(Type serviceKey, object? key) => + key is null && serviceKey?.IsInstanceOfType(this) is true ? this : null; /// - TService? IEmbeddingGenerator>.GetService(object? key) where TService : class - => key is null ? this as TService : null; + object? IEmbeddingGenerator>.GetService(Type serviceKey, object? key) => + key is null && serviceKey?.IsInstanceOfType(this) is true ? this : null; /// /// Releases the resources used by the instance. diff --git a/src/OllamaSharp.csproj b/src/OllamaSharp.csproj index 8e2f1dd..04c8775 100644 --- a/src/OllamaSharp.csproj +++ b/src/OllamaSharp.csproj @@ -39,7 +39,7 @@ - +