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 Sep 25, 2024
1 parent af69621 commit 77de5d9
Show file tree
Hide file tree
Showing 23 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ partial void ProcessGenerateChatCompletionResponse(
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="messages">
/// The messages of the chat, this can be used to keep a chat memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ partial void ProcessGenerateCompletionResponse(
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="prompt">
/// The prompt to generate a response.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ partial void ProcessGenerateEmbeddingResponseContent(
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="prompt">
/// Text to generate embeddings for.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface IChatClient
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="messages">
/// The messages of the chat, this can be used to keep a chat memory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface ICompletionsClient
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="prompt">
/// The prompt to generate a response.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial interface IEmbeddingsClient
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="prompt">
/// Text to generate embeddings for.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial interface IModelsClient
/// </summary>
/// <param name="source">
/// Name of the model to copy.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="destination">
/// Name of the new model.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial interface IModelsClient
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="insecure">
/// Allow insecure connections to the library. <br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial interface IModelsClient
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed partial class CopyModelRequest
{
/// <summary>
/// Name of the model to copy.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("source")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class GenerateChatCompletionRequest
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public sealed partial class GenerateChatCompletionResponse
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class GenerateCompletionRequest
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class GenerateCompletionResponse
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
public string? Model { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class GenerateEmbeddingRequest
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Ollama/Generated/Ollama.Models.Model.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class Model
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
public string? Model1 { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class ModelInfoRequest
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Ollama/Generated/Ollama.Models.ProcessModel.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class ProcessModel
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
public string? Model { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed partial class PullModelRequest
/// <summary>
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ partial void ProcessCopyModelResponse(
/// </summary>
/// <param name="source">
/// Name of the model to copy.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="destination">
/// Name of the new model.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ partial void ProcessPullModelResponse(
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="insecure">
/// Allow insecure connections to the library. <br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ partial void ProcessShowModelInfoResponseContent(
/// <param name="model">
/// The model name. <br/>
/// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.<br/>
/// Example: llama3.1
/// Example: llama3.2
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
20 changes: 10 additions & 10 deletions src/libs/Ollama/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
prompt:
type: string
description: The prompt to generate a response.
Expand Down Expand Up @@ -455,7 +455,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
created_at:
type: string
description: Date on which a model was created.
Expand Down Expand Up @@ -517,7 +517,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
messages:
type: array
items:
Expand Down Expand Up @@ -554,7 +554,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
created_at:
type: string
description: Date on which a model was created.
Expand Down Expand Up @@ -696,7 +696,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
prompt:
type: string
description: Text to generate embeddings for.
Expand Down Expand Up @@ -778,7 +778,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
modified_at:
type: string
description: Model modification date.
Expand Down Expand Up @@ -855,7 +855,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
size:
type: integer
description: Size of the model on disk.
Expand Down Expand Up @@ -885,7 +885,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
description: Request class for the show model info endpoint.
ModelInfo:
type: object
Expand Down Expand Up @@ -934,7 +934,7 @@ components:
source:
type: string
description: Name of the model to copy.
example: llama3.1
example: llama3.2
destination:
type: string
description: Name of the new model.
Expand All @@ -958,7 +958,7 @@ components:
model:
type: string
description: "The model name. \n\nModel names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.\n"
example: llama3.1
example: llama3.2
insecure:
type: boolean
description: "Allow insecure connections to the library. \n\nOnly use this if you are pulling from your own library during development.\n"
Expand Down

0 comments on commit 77de5d9

Please sign in to comment.