Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 11, 2024
1 parent 07b1681 commit c9da0e6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 39 deletions.
70 changes: 33 additions & 37 deletions src/libs/Ollama/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ollama.ToolCallFunctionArgs? Type20 { get; set; }
public object? Type20 { get; set; }
/// <summary>
///
/// </summary>
Expand All @@ -118,134 +118,130 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::Ollama.ToolFunctionParams? Type25 { get; set; }
public global::Ollama.GenerateChatCompletionResponse? Type25 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.GenerateChatCompletionResponse? Type26 { get; set; }
public global::Ollama.DoneReason? Type26 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.DoneReason? Type27 { get; set; }
public global::Ollama.DoneReasonEnum? Type27 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.DoneReasonEnum? Type28 { get; set; }
public global::Ollama.GenerateEmbeddingRequest? Type28 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.GenerateEmbeddingRequest? Type29 { get; set; }
public global::Ollama.GenerateEmbeddingResponse? Type29 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.GenerateEmbeddingResponse? Type30 { get; set; }
public global::System.Collections.Generic.IList<double>? Type30 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<double>? Type31 { get; set; }
public double? Type31 { get; set; }
/// <summary>
///
/// </summary>
public double? Type32 { get; set; }
public global::Ollama.CreateModelRequest? Type32 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.CreateModelRequest? Type33 { get; set; }
public global::Ollama.CreateModelResponse? Type33 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.CreateModelResponse? Type34 { get; set; }
public global::Ollama.CreateModelStatus? Type34 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.CreateModelStatus? Type35 { get; set; }
public global::Ollama.CreateModelStatusEnum? Type35 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.CreateModelStatusEnum? Type36 { get; set; }
public global::Ollama.ModelsResponse? Type36 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ModelsResponse? Type37 { get; set; }
public global::System.Collections.Generic.IList<global::Ollama.Model>? Type37 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ollama.Model>? Type38 { get; set; }
public global::Ollama.Model? Type38 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.Model? Type39 { get; set; }
public global::Ollama.ModelDetails? Type39 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ModelDetails? Type40 { get; set; }
public global::Ollama.ModelInformation? Type40 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ModelInformation? Type41 { get; set; }
public global::Ollama.ProcessResponse? Type41 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ProcessResponse? Type42 { get; set; }
public global::System.Collections.Generic.IList<global::Ollama.ProcessModel>? Type42 { get; set; }
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::Ollama.ProcessModel>? Type43 { get; set; }
public global::Ollama.ProcessModel? Type43 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ProcessModel? Type44 { get; set; }
public global::Ollama.ModelInfoRequest? Type44 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ModelInfoRequest? Type45 { get; set; }
public global::Ollama.ModelInfo? Type45 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.ModelInfo? Type46 { get; set; }
public global::Ollama.CopyModelRequest? Type46 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.CopyModelRequest? Type47 { get; set; }
public global::Ollama.DeleteModelRequest? Type47 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.DeleteModelRequest? Type48 { get; set; }
public global::Ollama.PullModelRequest? Type48 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PullModelRequest? Type49 { get; set; }
public global::Ollama.PullModelResponse? Type49 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PullModelResponse? Type50 { get; set; }
public global::Ollama.PullModelStatus? Type50 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PullModelStatus? Type51 { get; set; }
public global::Ollama.PullModelStatusEnum? Type51 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PullModelStatusEnum? Type52 { get; set; }
public global::Ollama.PushModelRequest? Type52 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PushModelRequest? Type53 { get; set; }
public global::Ollama.PushModelResponse? Type53 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PushModelResponse? Type54 { get; set; }
public global::Ollama.AnyOf<string, global::Ollama.PushModelResponseStatus?>? Type54 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.AnyOf<string, global::Ollama.PushModelResponseStatus?>? Type55 { get; set; }
public global::Ollama.PushModelResponseStatus? Type55 { get; set; }
/// <summary>
///
/// </summary>
public global::Ollama.PushModelResponseStatus? Type56 { get; set; }
/// <summary>
///
/// </summary>
public byte[]? Type57 { get; set; }
public byte[]? Type56 { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class ToolCallFunction
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("arguments")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ollama.ToolCallFunctionArgs Arguments { get; set; }
public required object Arguments { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Ollama/Generated/Ollama.Models.ToolFunction.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public sealed partial class ToolFunction
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("parameters")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::Ollama.ToolFunctionParams Parameters { get; set; }
public required object Parameters { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down

0 comments on commit c9da0e6

Please sign in to comment.