Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV authored Jun 3, 2024
1 parent 0dcab3b commit 7d65e90
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Providers/Google/src/GoogleChatModel.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using GenerativeAI.Models;
using GenerativeAI.Types;
using LangChain.Providers.Google.Extensions;
Expand Down Expand Up @@ -52,8 +51,6 @@ private static Content ToRequestMessage(Message message)
};
}

[RequiresUnreferencedCode("Calls LangChain.Providers.Google.Extensions.GoogleGeminiExtensions.GetString()")]
[RequiresDynamicCode("Calls LangChain.Providers.Google.Extensions.GoogleGeminiExtensions.GetString()")]
private static Message ToMessage(EnhancedGenerateContentResponse message)
{
if (message.GetFunction() != null)
Expand Down Expand Up @@ -116,8 +113,6 @@ private async Task<Message> StreamCompletionAsync(IReadOnlyCollection<Message> m
}

/// <inheritdoc />
[RequiresUnreferencedCode()]
[RequiresDynamicCode()]
public override async Task<ChatResponse> GenerateAsync(
ChatRequest request,
ChatSettings? settings = null,
Expand Down

0 comments on commit 7d65e90

Please sign in to comment.