Skip to content
Open
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
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Chat.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IOllamaClient
/// Generate the next chat message in a conversation between a user and an assistant.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -25,6 +26,7 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task<global::Ollama.ChatResponse> ChatAsync(

global::Ollama.ChatRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate a chat message<br/>
Expand Down Expand Up @@ -57,6 +59,7 @@ public partial interface IOllamaClient
/// <param name="topLogprobs">
/// Number of most likely tokens to return at each token position when logprobs are enabled
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ollama.ChatResponse> ChatAsync(
Expand All @@ -69,6 +72,7 @@ public partial interface IOllamaClient
global::Ollama.OneOf<string, double?>? keepAlive = default,
bool? logprobs = default,
int? topLogprobs = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IOllamaClient
/// Generate the next chat message in a conversation between a user and an assistant.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -25,6 +26,7 @@ public partial interface IOllamaClient
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.ChatStreamEvent> ChatAsStreamAsync(

global::Ollama.ChatRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate a chat message<br/>
Expand Down Expand Up @@ -57,6 +59,7 @@ public partial interface IOllamaClient
/// <param name="topLogprobs">
/// Number of most likely tokens to return at each token position when logprobs are enabled
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.ChatStreamEvent> ChatAsStreamAsync(
Expand All @@ -69,6 +72,7 @@ public partial interface IOllamaClient
global::Ollama.OneOf<string, double?>? keepAlive = default,
bool? logprobs = default,
int? topLogprobs = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Copy.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial interface IOllamaClient
/// Copy a model
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -19,6 +20,7 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task CopyAsync(

global::Ollama.CopyRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Copy a model
Expand All @@ -29,11 +31,13 @@ public partial interface IOllamaClient
/// <param name="destination">
/// New model name to create
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task CopyAsync(
string source,
string destination,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Create.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial interface IOllamaClient
/// Create a model
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task<global::Ollama.StatusResponse> CreateAsync(

global::Ollama.CreateRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a model
Expand Down Expand Up @@ -48,6 +50,7 @@ public partial interface IOllamaClient
/// <param name="quantize">
/// Quantization level to apply (e.g. `q4_K_M`, `q8_0`)
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ollama.StatusResponse> CreateAsync(
Expand All @@ -59,6 +62,7 @@ public partial interface IOllamaClient
object? parameters = default,
global::System.Collections.Generic.IList<global::Ollama.ChatMessage>? messages = default,
string? quantize = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial interface IOllamaClient
/// Create a model
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IOllamaClient
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.StatusEvent> CreateAsStreamAsync(

global::Ollama.CreateRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create a model
Expand Down Expand Up @@ -48,6 +50,7 @@ public partial interface IOllamaClient
/// <param name="quantize">
/// Quantization level to apply (e.g. `q4_K_M`, `q8_0`)
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.StatusEvent> CreateAsStreamAsync(
Expand All @@ -59,6 +62,7 @@ public partial interface IOllamaClient
object? parameters = default,
global::System.Collections.Generic.IList<global::Ollama.ChatMessage>? messages = default,
string? quantize = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Delete.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public partial interface IOllamaClient
/// Delete a model
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -18,17 +19,20 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task DeleteAsync(

global::Ollama.DeleteRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete a model
/// </summary>
/// <param name="model">
/// Model name to delete
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task DeleteAsync(
string model,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Embed.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IOllamaClient
/// Creates vector embeddings representing the input text
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task<global::Ollama.EmbedResponse> EmbedAsync(

global::Ollama.EmbedRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate embeddings<br/>
Expand All @@ -44,6 +46,7 @@ public partial interface IOllamaClient
/// <param name="options">
/// Runtime options that control text generation
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ollama.EmbedResponse> EmbedAsync(
Expand All @@ -53,6 +56,7 @@ public partial interface IOllamaClient
int? dimensions = default,
string? keepAlive = default,
global::Ollama.ModelOptions? options = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
4 changes: 4 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Generate.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IOllamaClient
/// Generates a response for the provided prompt
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IOllamaClient
global::System.Threading.Tasks.Task<global::Ollama.GenerateResponse> GenerateAsync(

global::Ollama.GenerateRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate a response<br/>
Expand Down Expand Up @@ -59,6 +61,7 @@ public partial interface IOllamaClient
/// <param name="topLogprobs">
/// Number of most likely tokens to return at each token position when logprobs are enabled
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Ollama.GenerateResponse> GenerateAsync(
Expand All @@ -74,6 +77,7 @@ public partial interface IOllamaClient
global::Ollama.ModelOptions? options = default,
bool? logprobs = default,
int? topLogprobs = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public partial interface IOllamaClient
/// Generates a response for the provided prompt
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
Expand All @@ -20,6 +21,7 @@ public partial interface IOllamaClient
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.GenerateStreamEvent> GenerateAsStreamAsync(

global::Ollama.GenerateRequest request,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Generate a response<br/>
Expand Down Expand Up @@ -59,6 +61,7 @@ public partial interface IOllamaClient
/// <param name="topLogprobs">
/// Number of most likely tokens to return at each token position when logprobs are enabled
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Collections.Generic.IAsyncEnumerable<global::Ollama.GenerateStreamEvent> GenerateAsStreamAsync(
Expand All @@ -74,6 +77,7 @@ public partial interface IOllamaClient
global::Ollama.ModelOptions? options = default,
bool? logprobs = default,
int? topLogprobs = default,
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
2 changes: 2 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ public partial interface IOllamaClient
/// List models<br/>
/// Fetch a list of models and their details
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
/// curl http://localhost:11434/api/tags
/// </remarks>
global::System.Threading.Tasks.Task<global::Ollama.ListResponse> ListAsync(
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
2 changes: 2 additions & 0 deletions src/libs/Ollama/Generated/Ollama.IOllamaClient.Ps.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ public partial interface IOllamaClient
/// List running models<br/>
/// Retrieve a list of models that are currently running
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Ollama.ApiException"></exception>
/// <remarks>
/// curl http://localhost:11434/api/ps
/// </remarks>
global::System.Threading.Tasks.Task<global::Ollama.PsResponse> PsAsync(
global::Ollama.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading