Skip to content
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
1 change: 0 additions & 1 deletion Google.GenAI/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using System.Collections.Immutable;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading;

using Google.Apis.Auth.OAuth2;
using Google.GenAI.Types;
Expand Down Expand Up @@ -140,7 +139,7 @@
string path,
string requestJson,
HttpOptions? requestHttpOptions,
[EnumeratorCancellation] CancellationToken cancellationToken = default);

Check warning on line 142 in Google.GenAI/ApiClient.cs

View workflow job for this annotation

GitHub Actions / unit-e2e-tests

The EnumeratorCancellationAttribute applied to parameter 'cancellationToken' will have no effect. The attribute is only effective on a parameter of type CancellationToken in an async-iterator method returning IAsyncEnumerable

/// <summary>
/// Returns the library version string.
Expand Down Expand Up @@ -181,7 +180,7 @@
}

var currentHeaders = this.HttpOptions.Headers ?? new Dictionary<string, string>(ImmutableDictionary<string, string>.Empty);
var newHeaders = optionsToApply.Headers ?? new Dictionary<string, string>(ImmutableDictionary<string, string>.Empty);

Check warning on line 183 in Google.GenAI/ApiClient.cs

View workflow job for this annotation

GitHub Actions / unit-e2e-tests

Dereference of a possibly null reference.

var headersBuilder = ImmutableDictionary.CreateBuilder<string, string>(StringComparer.OrdinalIgnoreCase);

Expand Down
3 changes: 0 additions & 3 deletions Google.GenAI/HttpApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
* limitations under the License.
*/

using System.Collections.Generic;
using System.IO;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.RegularExpressions;
Expand Down
1 change: 0 additions & 1 deletion Google.GenAI/Live.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using System.Text;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Threading;

using Google.GenAI.Types;

Expand Down
Loading