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
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,25 @@ public sealed partial class AnthropicTextEditorCodeExecutionStrReplaceResult
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("new_lines")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int NewLines { get; set; }
public int? NewLines { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("new_start")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int NewStart { get; set; }
public int? NewStart { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("old_lines")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int OldLines { get; set; }
public int? OldLines { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("old_start")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int OldStart { get; set; }
public int? OldStart { get; set; }

/// <summary>
///
Expand All @@ -58,21 +54,21 @@ public sealed partial class AnthropicTextEditorCodeExecutionStrReplaceResult
/// <summary>
/// Initializes a new instance of the <see cref="AnthropicTextEditorCodeExecutionStrReplaceResult" /> class.
/// </summary>
/// <param name="lines"></param>
/// <param name="newLines"></param>
/// <param name="newStart"></param>
/// <param name="oldLines"></param>
/// <param name="oldStart"></param>
/// <param name="lines"></param>
/// <param name="type"></param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public AnthropicTextEditorCodeExecutionStrReplaceResult(
int newLines,
int newStart,
int oldLines,
int oldStart,
global::System.Collections.Generic.IList<string>? lines,
int? newLines,
int? newStart,
int? oldLines,
int? oldStart,
global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType type)
{
this.Lines = lines;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,19 @@ public sealed partial class AnthropicTextEditorCodeExecutionViewResult
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("num_lines")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int NumLines { get; set; }
public int? NumLines { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("start_line")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int StartLine { get; set; }
public int? StartLine { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("total_lines")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int TotalLines { get; set; }
public int? TotalLines { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -72,9 +69,9 @@ public sealed partial class AnthropicTextEditorCodeExecutionViewResult
public AnthropicTextEditorCodeExecutionViewResult(
string content,
global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType fileType,
int numLines,
int startLine,
int totalLines,
int? numLines,
int? startLine,
int? totalLines,
global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType type)
{
this.Content = content ?? throw new global::System.ArgumentNullException(nameof(content));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ public sealed partial class BaseMessagesResultUsage
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cache_creation_input_tokens")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int CacheCreationInputTokens { get; set; }
public int? CacheCreationInputTokens { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cache_read_input_tokens")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int CacheReadInputTokens { get; set; }
public int? CacheReadInputTokens { get; set; }

/// <summary>
///
Expand Down Expand Up @@ -87,12 +85,12 @@ public sealed partial class BaseMessagesResultUsage
/// Initializes a new instance of the <see cref="BaseMessagesResultUsage" /> class.
/// </summary>
/// <param name="cacheCreation"></param>
/// <param name="cacheCreationInputTokens"></param>
/// <param name="cacheReadInputTokens"></param>
/// <param name="inputTokens"></param>
/// <param name="outputTokens"></param>
/// <param name="serverToolUse"></param>
/// <param name="serviceTier"></param>
/// <param name="cacheCreationInputTokens"></param>
/// <param name="cacheReadInputTokens"></param>
/// <param name="inferenceGeo"></param>
/// <param name="iterations"></param>
/// <param name="speed"></param>
Expand All @@ -101,12 +99,12 @@ public sealed partial class BaseMessagesResultUsage
#endif
public BaseMessagesResultUsage(
global::OpenRouter.AnthropicCacheCreation cacheCreation,
int cacheCreationInputTokens,
int cacheReadInputTokens,
int inputTokens,
int outputTokens,
global::OpenRouter.AnthropicServerToolUsage serverToolUse,
global::OpenRouter.AnthropicServiceTier serviceTier,
int? cacheCreationInputTokens,
int? cacheReadInputTokens,
string? inferenceGeo,
global::System.Collections.Generic.IList<global::OpenRouter.AnthropicUsageIteration>? iterations,
global::OpenRouter.AnthropicSpeed? speed)
Expand Down
Loading