Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update M.E.AI version to 9.0.1-preview.1.24570.5 #144

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/OllamaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ async Task<GeneratedEmbeddings<Embedding<float>>> IEmbeddingGenerator<string, Em
}

/// <inheritdoc/>
TService? IChatClient.GetService<TService>(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;

/// <inheritdoc />
TService? IEmbeddingGenerator<string, Embedding<float>>.GetService<TService>(object? key) where TService : class
=> key is null ? this as TService : null;
object? IEmbeddingGenerator<string, Embedding<float>>.GetService(Type serviceKey, object? key) =>
key is null && serviceKey?.IsInstanceOfType(this) is true ? this : null;

/// <summary>
/// Releases the resources used by the <see cref="OllamaApiClient"/> instance.
Expand Down
2 changes: 1 addition & 1 deletion src/OllamaSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.0.0-preview.9.24556.5" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.0.1-preview.1.24570.5" />
</ItemGroup>

</Project>
Loading