Skip to content

Commit

Permalink
Merge pull request #63 from tryAGI/bot/update-openapi_202410241831
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 24, 2024
2 parents 81b9f17 + ea8f8d7 commit 0c31a0d
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ partial void ProcessGenerateChatCompletionResponse(
global::System.Collections.Generic.IList<global::Ollama.Message> messages,
global::Ollama.ResponseFormat? format = default,
global::Ollama.RequestOptions? options = default,
bool? stream = true,
bool? stream = default,
int? keepAlive = default,
global::System.Collections.Generic.IList<global::Ollama.Tool>? tools = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ partial void ProcessGenerateCompletionResponse(
global::Ollama.RequestOptions? options = default,
global::Ollama.ResponseFormat? format = default,
bool? raw = default,
bool? stream = true,
bool? stream = default,
int? keepAlive = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public partial interface IChatClient
global::System.Collections.Generic.IList<global::Ollama.Message> messages,
global::Ollama.ResponseFormat? format = default,
global::Ollama.RequestOptions? options = default,
bool? stream = true,
bool? stream = default,
int? keepAlive = default,
global::System.Collections.Generic.IList<global::Ollama.Tool>? tools = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public partial interface ICompletionsClient
global::Ollama.RequestOptions? options = default,
global::Ollama.ResponseFormat? format = default,
bool? raw = default,
bool? stream = true,
bool? stream = default,
int? keepAlive = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public partial interface IModelsClient
string modelfile,
string? path = default,
string? quantize = default,
bool? stream = true,
bool? stream = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.IModelsClient.PullModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public partial interface IModelsClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.PullModelResponse> PullModelAsync(
string model,
bool? insecure = false,
bool? insecure = default,
string? username = default,
string? password = default,
bool? stream = true,
bool? stream = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.IModelsClient.PushModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public partial interface IModelsClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.PushModelResponse> PushModelAsync(
string model,
bool? insecure = false,
bool? insecure = default,
string? username = default,
string? password = default,
bool? stream = true,
bool? stream = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public sealed partial class CreateModelRequest
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = true;
public bool? Stream { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public sealed partial class GenerateChatCompletionRequest
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = true;
public bool? Stream { get; set; }

/// <summary>
/// How long (in minutes) to keep the model loaded in memory.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public sealed partial class GenerateCompletionRequest
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = true;
public bool? Stream { get; set; }

/// <summary>
/// How long (in minutes) to keep the model loaded in memory.<br/>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.Models.PullModelRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class PullModelRequest
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("insecure")]
public bool? Insecure { get; set; } = false;
public bool? Insecure { get; set; }

/// <summary>
/// Ollama username.
Expand All @@ -42,7 +42,7 @@ public sealed partial class PullModelRequest
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = true;
public bool? Stream { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.Models.PushModelRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public sealed partial class PushModelRequest
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("insecure")]
public bool? Insecure { get; set; } = false;
public bool? Insecure { get; set; }

/// <summary>
/// Ollama username.
Expand All @@ -41,7 +41,7 @@ public sealed partial class PushModelRequest
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stream")]
public bool? Stream { get; set; } = true;
public bool? Stream { 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.Tool.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed partial class Tool
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::Ollama.JsonConverters.ToolTypeJsonConverter))]
public global::Ollama.ToolType? Type { get; set; } = global::Ollama.ToolType.Function;
public global::Ollama.ToolType? Type { get; set; }

/// <summary>
/// A function that the model may call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ partial void ProcessCreateModelResponse(
string modelfile,
string? path = default,
string? quantize = default,
bool? stream = true,
bool? stream = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ollama.CreateModelRequest
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.ModelsClient.PullModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ partial void ProcessPullModelResponse(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.PullModelResponse> PullModelAsync(
string model,
bool? insecure = false,
bool? insecure = default,
string? username = default,
string? password = default,
bool? stream = true,
bool? stream = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ollama.PullModelRequest
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Ollama/Generated/Ollama.ModelsClient.PushModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ partial void ProcessPushModelResponse(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.PushModelResponse> PushModelAsync(
string model,
bool? insecure = false,
bool? insecure = default,
string? username = default,
string? password = default,
bool? stream = true,
bool? stream = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Ollama.PushModelRequest
Expand Down

0 comments on commit 0c31a0d

Please sign in to comment.