Skip to content

Commit

Permalink
feat: Update M.E.AI to 9.0.1-preview.1.24570.5 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Nov 22, 2024
1 parent 7fe95f4 commit d317d71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/Anthropic/Anthropic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ItemGroup>
<PackageReference Include="CSharpToJsonSchema" Version="3.10.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="9.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" />
<PackageReference Include="PolySharp" Version="1.14.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
5 changes: 4 additions & 1 deletion src/libs/Anthropic/Extensions/AnthropicClient.ChatClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public partial class AnthropicClient : IChatClient
ChatClientMetadata IChatClient.Metadata => _metadata ??= new(nameof(AnthropicClient), this.BaseUri);

/// <inheritdoc />
TService? IChatClient.GetService<TService>(object? key) where TService : class => this as TService;
object? IChatClient.GetService(Type serviceType, object? key)
{
return key is null && serviceType?.IsInstanceOfType(this) is true ? this : null;
}

async Task<ChatCompletion> IChatClient.CompleteAsync(
IList<ChatMessage> chatMessages, ChatOptions? options, CancellationToken cancellationToken)
Expand Down

0 comments on commit d317d71

Please sign in to comment.