diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/AnyOf.2.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/AnyOf.2.g.cs
new file mode 100644
index 0000000..b592586
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/AnyOf.2.g.cs
@@ -0,0 +1,165 @@
+using System.Linq;
+
+#nullable enable
+
+namespace System
+{
+ ///
+ ///
+ ///
+ public readonly struct AnyOf : global::System.IEquatable>
+ {
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public T1? Value1 { get; init; }
+#else
+ public T1? Value1 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))]
+#endif
+ public bool IsValue1 => Value1 != null;
+
+ ///
+ ///
+ ///
+ public static implicit operator AnyOf(T1 value) => new AnyOf(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator T1?(AnyOf @this) => @this.Value1;
+
+ ///
+ ///
+ ///
+ public AnyOf(T1? value)
+ {
+ Value1 = value;
+ }
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ public T2? Value2 { get; init; }
+#else
+ public T2? Value2 { get; }
+#endif
+
+ ///
+ ///
+ ///
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
+#endif
+ public bool IsValue2 => Value2 != null;
+
+ ///
+ ///
+ ///
+ public static implicit operator AnyOf(T2 value) => new AnyOf(value);
+
+ ///
+ ///
+ ///
+ public static implicit operator T2?(AnyOf @this) => @this.Value2;
+
+ ///
+ ///
+ ///
+ public AnyOf(T2? value)
+ {
+ Value2 = value;
+ }
+
+ ///
+ ///
+ ///
+ public AnyOf(
+ T1? value1,
+ T2? value2
+ )
+ {
+ Value1 = value1;
+ Value2 = value2;
+ }
+
+ ///
+ ///
+ ///
+ public object? Object =>
+ Value2 as object ??
+ Value1 as object
+ ;
+
+ ///
+ ///
+ ///
+ public bool Validate()
+ {
+ return IsValue1 || IsValue2;
+ }
+
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ var fields = new object?[]
+ {
+ Value1,
+ typeof(T1),
+ Value2,
+ typeof(T2),
+ };
+ const int offset = unchecked((int)2166136261);
+ const int prime = 16777619;
+ static int HashCodeAggregator(int hashCode, object? value) => value == null
+ ? (hashCode ^ 0) * prime
+ : (hashCode ^ value.GetHashCode()) * prime;
+ return fields.Aggregate(offset, HashCodeAggregator);
+ }
+
+ ///
+ ///
+ ///
+ public bool Equals(AnyOf other)
+ {
+ return
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) &&
+ global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2)
+ ;
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator ==(AnyOf obj1, AnyOf obj2)
+ {
+ return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2);
+ }
+
+ ///
+ ///
+ ///
+ public static bool operator !=(AnyOf obj1, AnyOf obj2)
+ {
+ return !(obj1 == obj2);
+ }
+
+ ///
+ ///
+ ///
+ public override bool Equals(object? obj)
+ {
+ return obj is AnyOf o && Equals(o);
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOf2.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOf2.g.cs
new file mode 100644
index 0000000..71b0ea6
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOf2.g.cs
@@ -0,0 +1,78 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public class AnyOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter>
+ {
+ ///
+ public override global::System.AnyOf Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ var
+ readerCopy = reader;
+ T1? value1 = default;
+ try
+ {
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+
+ readerCopy = reader;
+ T2? value2 = default;
+ try
+ {
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
+ }
+ catch (global::System.Text.Json.JsonException)
+ {
+ }
+ var result = new global::System.AnyOf(
+ value1,
+
+ value2
+ );
+ if (!result.Validate())
+ {
+ throw new global::System.Text.Json.JsonException($"Invalid JSON format for AnyOf<{typeof(T1).Name}, {typeof(T2).Name}>");
+ }
+
+ if (value1 != null)
+ {
+ _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
+ }
+
+ else if (value2 != null)
+ {
+ _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
+ }
+ return result;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::System.AnyOf value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ if (!value.Validate())
+ {
+ throw new global::System.Text.Json.JsonException($"Invalid AnyOf<{typeof(T1).Name}, {typeof(T2).Name}> object.");
+ }
+
+ if (value.IsValue1)
+ {
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, value.Value1!.GetType(), options);
+ }
+
+ else if (value.IsValue2)
+ {
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, value.Value2!.GetType(), options);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOfFactory2.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOfFactory2.g.cs
new file mode 100644
index 0000000..7b0c1c6
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.AnyOfFactory2.g.cs
@@ -0,0 +1,25 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class AnyOfJsonConverterFactory2 : global::System.Text.Json.Serialization.JsonConverterFactory
+ {
+ ///
+ public override bool CanConvert(global::System.Type? typeToConvert)
+ {
+ return typeToConvert is { IsGenericType: true } && typeToConvert.GetGenericTypeDefinition() == typeof(global::System.AnyOf<,>);
+ }
+
+ ///
+ public override global::System.Text.Json.Serialization.JsonConverter CreateConverter(
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ typeToConvert = typeToConvert ?? throw new global::System.ArgumentNullException(nameof(typeToConvert));
+
+ return (global::System.Text.Json.Serialization.JsonConverter)global::System.Activator.CreateInstance(
+ typeof(AnyOfJsonConverter<,>).MakeGenericType(typeToConvert.GenericTypeArguments))!;
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatus.g.cs
new file mode 100644
index 0000000..8e4ce11
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatus.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class CreateModelResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.CreateModelResponseStatus Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.CreateModelResponseStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.CreateModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.CreateModelResponseStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.CreateModelResponseStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatusNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatusNullable.g.cs
new file mode 100644
index 0000000..59e0b90
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.CreateModelResponseStatusNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class CreateModelResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.CreateModelResponseStatus? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.CreateModelResponseStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.CreateModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.CreateModelResponseStatus? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.CreateModelResponseStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormat.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormat.g.cs
new file mode 100644
index 0000000..e2761a4
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormat.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateChatCompletionRequestFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateChatCompletionRequestFormat Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateChatCompletionRequestFormatExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateChatCompletionRequestFormat)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateChatCompletionRequestFormat value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.GenerateChatCompletionRequestFormatExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormatNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormatNullable.g.cs
new file mode 100644
index 0000000..f308d0b
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionRequestFormatNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateChatCompletionRequestFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateChatCompletionRequestFormat? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateChatCompletionRequestFormatExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateChatCompletionRequestFormat)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateChatCompletionRequestFormat? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.GenerateChatCompletionRequestFormatExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReason.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReason.g.cs
new file mode 100644
index 0000000..993d768
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReason.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateChatCompletionResponseDoneReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateChatCompletionResponseDoneReason Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateChatCompletionResponseDoneReasonExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateChatCompletionResponseDoneReason)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateChatCompletionResponseDoneReason value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.GenerateChatCompletionResponseDoneReasonExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReasonNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReasonNullable.g.cs
new file mode 100644
index 0000000..6466953
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateChatCompletionResponseDoneReasonNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateChatCompletionResponseDoneReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateChatCompletionResponseDoneReason? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateChatCompletionResponseDoneReasonExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateChatCompletionResponseDoneReason)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateChatCompletionResponseDoneReason? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.GenerateChatCompletionResponseDoneReasonExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormat.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormat.g.cs
new file mode 100644
index 0000000..99f39f4
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormat.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateCompletionRequestFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateCompletionRequestFormat Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateCompletionRequestFormatExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateCompletionRequestFormat)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateCompletionRequestFormat value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.GenerateCompletionRequestFormatExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormatNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormatNullable.g.cs
new file mode 100644
index 0000000..14c06c2
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.GenerateCompletionRequestFormatNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class GenerateCompletionRequestFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.GenerateCompletionRequestFormat? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.GenerateCompletionRequestFormatExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.GenerateCompletionRequestFormat)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.GenerateCompletionRequestFormat? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.GenerateCompletionRequestFormatExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRole.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRole.g.cs
new file mode 100644
index 0000000..ab04f3a
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRole.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class MessageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.MessageRole Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.MessageRoleExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.MessageRole)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.MessageRole value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.MessageRoleExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRoleNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRoleNullable.g.cs
new file mode 100644
index 0000000..501d002
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.MessageRoleNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class MessageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.MessageRole? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.MessageRoleExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.MessageRole)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.MessageRole? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.MessageRoleExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatus.g.cs
new file mode 100644
index 0000000..da79602
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatus.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class PullModelResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.PullModelResponseStatus Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.PullModelResponseStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.PullModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.PullModelResponseStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.PullModelResponseStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatusNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatusNullable.g.cs
new file mode 100644
index 0000000..7b49945
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PullModelResponseStatusNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class PullModelResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.PullModelResponseStatus? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.PullModelResponseStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.PullModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.PullModelResponseStatus? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.PullModelResponseStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatus.g.cs
new file mode 100644
index 0000000..e490a76
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatus.g.cs
@@ -0,0 +1,49 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class PushModelResponseStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.PushModelResponseStatus Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.PushModelResponseStatusExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.PushModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.PushModelResponseStatus value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Ollama.PushModelResponseStatusExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatusNullable.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatusNullable.g.cs
new file mode 100644
index 0000000..b4e63ba
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonConverters.PushModelResponseStatusNullable.g.cs
@@ -0,0 +1,56 @@
+#nullable enable
+
+namespace OpenApiGenerator.JsonConverters
+{
+ ///
+ public sealed class PushModelResponseStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Ollama.PushModelResponseStatus? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Ollama.PushModelResponseStatusExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Ollama.PushModelResponseStatus)numValue;
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Ollama.PushModelResponseStatus? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Ollama.PushModelResponseStatusExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonSerializerContextTypes.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonSerializerContextTypes.g.cs
new file mode 100644
index 0000000..724980d
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/JsonSerializerContextTypes.g.cs
@@ -0,0 +1,176 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ ///
+ ///
+ public sealed partial class JsonSerializerContextTypes
+ {
+ ///
+ ///
+ ///
+ public string? Type0 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type1 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type2 { get; set; }
+ ///
+ ///
+ ///
+ public RequestOptions? Type3 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateCompletionRequestFormat? Type4 { get; set; }
+ ///
+ ///
+ ///
+ public bool? Type5 { get; set; }
+ ///
+ ///
+ ///
+ public int? Type6 { get; set; }
+ ///
+ ///
+ ///
+ public float? Type7 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.DateTime? Type8 { get; set; }
+ ///
+ ///
+ ///
+ public long? Type9 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type10 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateChatCompletionRequestFormat? Type11 { get; set; }
+ ///
+ ///
+ ///
+ public Message? Type12 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.AnyOf? Type13 { get; set; }
+ ///
+ ///
+ ///
+ public MessageRole? Type14 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type15 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.AnyOf? Type16 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type17 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.Collections.Generic.IList? Type18 { get; set; }
+ ///
+ ///
+ ///
+ public ModelDetails? Type19 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.AnyOf? Type20 { get; set; }
+ ///
+ ///
+ ///
+ public global::System.AnyOf? Type21 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateCompletionRequest? Type22 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateCompletionResponse? Type23 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateChatCompletionRequest? Type24 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateChatCompletionResponse? Type25 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateEmbeddingRequest? Type26 { get; set; }
+ ///
+ ///
+ ///
+ public GenerateEmbeddingResponse? Type27 { get; set; }
+ ///
+ ///
+ ///
+ public CreateModelRequest? Type28 { get; set; }
+ ///
+ ///
+ ///
+ public CreateModelResponse? Type29 { get; set; }
+ ///
+ ///
+ ///
+ public ModelsResponse? Type30 { get; set; }
+ ///
+ ///
+ ///
+ public RunningModelsResponse? Type31 { get; set; }
+ ///
+ ///
+ ///
+ public ModelInfoRequest? Type32 { get; set; }
+ ///
+ ///
+ ///
+ public ModelInfo? Type33 { get; set; }
+ ///
+ ///
+ ///
+ public CopyModelRequest? Type34 { get; set; }
+ ///
+ ///
+ ///
+ public DeleteModelRequest? Type35 { get; set; }
+ ///
+ ///
+ ///
+ public PullModelRequest? Type36 { get; set; }
+ ///
+ ///
+ ///
+ public PullModelResponse? Type37 { get; set; }
+ ///
+ ///
+ ///
+ public PushModelRequest? Type38 { get; set; }
+ ///
+ ///
+ ///
+ public PushModelResponse? Type39 { get; set; }
+ ///
+ ///
+ ///
+ public byte[]? Type40 { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CopyModelRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CopyModelRequest.g.cs
new file mode 100644
index 0000000..9df5fbc
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CopyModelRequest.g.cs
@@ -0,0 +1,33 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for copying a model.
+ ///
+ public sealed partial class CopyModelRequest
+ {
+ ///
+ /// Name of the model to copy.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("source")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Source { get; set; }
+
+ ///
+ /// Name of the new model.
+ /// Example: llama3-backup
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("destination")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Destination { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelRequest.g.cs
new file mode 100644
index 0000000..af5e15e
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelRequest.g.cs
@@ -0,0 +1,53 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Create model request object.
+ ///
+ public sealed partial class CreateModelRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: mario
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// The contents of the Modelfile.
+ /// Example: FROM llama3\nSYSTEM You are mario from Super Mario Bros.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modelfile")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Modelfile { get; set; }
+
+ ///
+ /// Path to the Modelfile (optional)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("path")]
+ public string? Path { get; set; }
+
+ ///
+ /// The quantization level of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("quantize")]
+ public string? Quantize { get; set; }
+
+ ///
+ /// If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects.
+ /// Default Value: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")]
+ public bool Stream { get; set; } = true;
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponse.g.cs
new file mode 100644
index 0000000..b13834f
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponse.g.cs
@@ -0,0 +1,24 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Response object for creating a model. When finished, `status` is `success`.
+ ///
+ public sealed partial class CreateModelResponse
+ {
+ ///
+ /// Status creating the model
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
+ public global::System.AnyOf Status { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponseStatus.g.cs
new file mode 100644
index 0000000..283a03f
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelResponseStatus.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ ///
+ ///
+ public enum CreateModelResponseStatus
+ {
+ ///
+ ///
+ ///
+ CreatingSystemLayer,
+ ///
+ ///
+ ///
+ ParsingModelfile,
+ ///
+ ///
+ ///
+ Success,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class CreateModelResponseStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this CreateModelResponseStatus value)
+ {
+ return value switch
+ {
+ CreateModelResponseStatus.CreatingSystemLayer => "creating system layer",
+ CreateModelResponseStatus.ParsingModelfile => "parsing modelfile",
+ CreateModelResponseStatus.Success => "success",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static CreateModelResponseStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "creating system layer" => CreateModelResponseStatus.CreatingSystemLayer,
+ "parsing modelfile" => CreateModelResponseStatus.ParsingModelfile,
+ "success" => CreateModelResponseStatus.Success,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelStatus.g.cs
new file mode 100644
index 0000000..d925186
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.CreateModelStatus.g.cs
@@ -0,0 +1,18 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Status creating the model
+ ///
+ public sealed partial class CreateModelStatus
+ {
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DeleteModelRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DeleteModelRequest.g.cs
new file mode 100644
index 0000000..71bf01f
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DeleteModelRequest.g.cs
@@ -0,0 +1,26 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for deleting a model.
+ ///
+ public sealed partial class DeleteModelRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:13b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DoneReason.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DoneReason.g.cs
new file mode 100644
index 0000000..81ba995
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.DoneReason.g.cs
@@ -0,0 +1,18 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Reason why the model is done generating a response.
+ ///
+ public sealed partial class DoneReason
+ {
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequest.g.cs
new file mode 100644
index 0000000..ca9b367
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequest.g.cs
@@ -0,0 +1,65 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for the chat endpoint.
+ ///
+ public sealed partial class GenerateChatCompletionRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// The messages of the chat, this can be used to keep a chat memory
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required global::System.Collections.Generic.IList Messages { get; set; }
+
+ ///
+ /// The format to return a response in. Currently the only accepted value is json.
+ /// Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.
+ /// Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("format")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.GenerateChatCompletionRequestFormatJsonConverter))]
+ public GenerateChatCompletionRequestFormat? Format { get; set; }
+
+ ///
+ /// Additional model parameters listed in the documentation for the Modelfile such as `temperature`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("options")]
+ public RequestOptions? Options { get; set; }
+
+ ///
+ /// If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects.
+ /// Default Value: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")]
+ public bool Stream { get; set; } = true;
+
+ ///
+ /// How long (in minutes) to keep the model loaded in memory.
+ /// - If set to a positive duration (e.g. 20), the model will stay loaded for the provided duration.
+ /// - If set to a negative duration (e.g. -1), the model will stay loaded indefinitely.
+ /// - If set to 0, the model will be unloaded immediately once finished.
+ /// - If not set, the model will stay loaded for 5 minutes by default
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("keep_alive")]
+ public int? KeepAlive { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequestFormat.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequestFormat.g.cs
new file mode 100644
index 0000000..7d07793
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionRequestFormat.g.cs
@@ -0,0 +1,47 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The format to return a response in. Currently the only accepted value is json.
+ /// Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.
+ /// Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace.
+ ///
+ public enum GenerateChatCompletionRequestFormat
+ {
+ ///
+ ///
+ ///
+ Json,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class GenerateChatCompletionRequestFormatExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this GenerateChatCompletionRequestFormat value)
+ {
+ return value switch
+ {
+ GenerateChatCompletionRequestFormat.Json => "json",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static GenerateChatCompletionRequestFormat? ToEnum(string value)
+ {
+ return value switch
+ {
+ "json" => GenerateChatCompletionRequestFormat.Json,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponse.g.cs
new file mode 100644
index 0000000..4b7b366
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponse.g.cs
@@ -0,0 +1,94 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The response class for the chat endpoint.
+ ///
+ public sealed partial class GenerateChatCompletionResponse
+ {
+ ///
+ /// A message in the chat endpoint
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("message")]
+ public Message? Message { get; set; }
+
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ public string? Model { get; set; }
+
+ ///
+ /// Date on which a model was created.
+ /// Example:
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
+ public global::System.DateTime CreatedAt { get; set; }
+
+ ///
+ /// Whether the response has completed.
+ /// Example: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("done")]
+ public bool Done { get; set; }
+
+ ///
+ /// Reason why the model is done generating a response.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("done_reason")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
+ public global::System.AnyOf DoneReason { get; set; }
+
+ ///
+ /// Time spent generating the response.
+ /// Example: 5589157167
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_duration")]
+ public long TotalDuration { get; set; }
+
+ ///
+ /// Time spent in nanoseconds loading the model.
+ /// Example: 3013701500
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("load_duration")]
+ public long LoadDuration { get; set; }
+
+ ///
+ /// Number of tokens in the prompt.
+ /// Example: 46
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_eval_count")]
+ public int PromptEvalCount { get; set; }
+
+ ///
+ /// Time spent in nanoseconds evaluating the prompt.
+ /// Example: 1160282000
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_eval_duration")]
+ public long PromptEvalDuration { get; set; }
+
+ ///
+ /// Number of tokens the response.
+ /// Example: 113
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eval_count")]
+ public int EvalCount { get; set; }
+
+ ///
+ /// Time in nanoseconds spent generating the response.
+ /// Example: 1325948000
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eval_duration")]
+ public long EvalDuration { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponseDoneReason.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponseDoneReason.g.cs
new file mode 100644
index 0000000..11d41db
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateChatCompletionResponseDoneReason.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ ///
+ ///
+ public enum GenerateChatCompletionResponseDoneReason
+ {
+ ///
+ ///
+ ///
+ Stop,
+ ///
+ ///
+ ///
+ Length,
+ ///
+ ///
+ ///
+ Load,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class GenerateChatCompletionResponseDoneReasonExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this GenerateChatCompletionResponseDoneReason value)
+ {
+ return value switch
+ {
+ GenerateChatCompletionResponseDoneReason.Stop => "stop",
+ GenerateChatCompletionResponseDoneReason.Length => "length",
+ GenerateChatCompletionResponseDoneReason.Load => "load",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static GenerateChatCompletionResponseDoneReason? ToEnum(string value)
+ {
+ return value switch
+ {
+ "stop" => GenerateChatCompletionResponseDoneReason.Stop,
+ "length" => GenerateChatCompletionResponseDoneReason.Length,
+ "load" => GenerateChatCompletionResponseDoneReason.Load,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequest.g.cs
new file mode 100644
index 0000000..241275a
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequest.g.cs
@@ -0,0 +1,97 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for the generate endpoint.
+ ///
+ public sealed partial class GenerateCompletionRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// The prompt to generate a response.
+ /// Example: Why is the sky blue?
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Prompt { get; set; }
+
+ ///
+ /// (optional) a list of Base64-encoded images to include in the message (for multimodal models such as llava)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("images")]
+ public global::System.Collections.Generic.IList? Images { get; set; }
+
+ ///
+ /// The system prompt to (overrides what is defined in the Modelfile).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("system")]
+ public string? System { get; set; }
+
+ ///
+ /// The full prompt or prompt template (overrides what is defined in the Modelfile).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("template")]
+ public string? Template { get; set; }
+
+ ///
+ /// The context parameter returned from a previous request to [generateCompletion], this can be used to keep a short conversational memory.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("context")]
+ public global::System.Collections.Generic.IList? Context { get; set; }
+
+ ///
+ /// Additional model parameters listed in the documentation for the Modelfile such as `temperature`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("options")]
+ public RequestOptions? Options { get; set; }
+
+ ///
+ /// The format to return a response in. Currently the only accepted value is json.
+ /// Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.
+ /// Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("format")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.GenerateCompletionRequestFormatJsonConverter))]
+ public GenerateCompletionRequestFormat? Format { get; set; }
+
+ ///
+ /// If `true` no formatting will be applied to the prompt and no context will be returned.
+ /// You may choose to use the `raw` parameter if you are specifying a full templated prompt in your request to the API, and are managing history yourself.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("raw")]
+ public bool Raw { get; set; }
+
+ ///
+ /// If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects.
+ /// Default Value: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")]
+ public bool Stream { get; set; } = true;
+
+ ///
+ /// How long (in minutes) to keep the model loaded in memory.
+ /// - If set to a positive duration (e.g. 20), the model will stay loaded for the provided duration.
+ /// - If set to a negative duration (e.g. -1), the model will stay loaded indefinitely.
+ /// - If set to 0, the model will be unloaded immediately once finished.
+ /// - If not set, the model will stay loaded for 5 minutes by default
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("keep_alive")]
+ public int? KeepAlive { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequestFormat.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequestFormat.g.cs
new file mode 100644
index 0000000..d67580b
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionRequestFormat.g.cs
@@ -0,0 +1,47 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The format to return a response in. Currently the only accepted value is json.
+ /// Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.
+ /// Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace.
+ ///
+ public enum GenerateCompletionRequestFormat
+ {
+ ///
+ ///
+ ///
+ Json,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class GenerateCompletionRequestFormatExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this GenerateCompletionRequestFormat value)
+ {
+ return value switch
+ {
+ GenerateCompletionRequestFormat.Json => "json",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static GenerateCompletionRequestFormat? ToEnum(string value)
+ {
+ return value switch
+ {
+ "json" => GenerateCompletionRequestFormat.Json,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionResponse.g.cs
new file mode 100644
index 0000000..04e6b97
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateCompletionResponse.g.cs
@@ -0,0 +1,95 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The response class for the generate endpoint.
+ ///
+ public sealed partial class GenerateCompletionResponse
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ public string? Model { get; set; }
+
+ ///
+ /// Date on which a model was created.
+ /// Example:
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("created_at")]
+ public global::System.DateTime CreatedAt { get; set; }
+
+ ///
+ /// The response for a given prompt with a provided model.
+ /// Example: The sky appears blue because of a phenomenon called Rayleigh scattering.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response")]
+ public string? Response { get; set; }
+
+ ///
+ /// Whether the response has completed.
+ /// Example: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("done")]
+ public bool Done { get; set; }
+
+ ///
+ /// An encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory.
+ /// Example: [1, 2, 3]
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("context")]
+ public global::System.Collections.Generic.IList? Context { get; set; }
+
+ ///
+ /// Time spent generating the response.
+ /// Example: 5589157167
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total_duration")]
+ public long TotalDuration { get; set; }
+
+ ///
+ /// Time spent in nanoseconds loading the model.
+ /// Example: 3013701500
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("load_duration")]
+ public long LoadDuration { get; set; }
+
+ ///
+ /// Number of tokens in the prompt.
+ /// Example: 46
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_eval_count")]
+ public int PromptEvalCount { get; set; }
+
+ ///
+ /// Time spent in nanoseconds evaluating the prompt.
+ /// Example: 1160282000
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt_eval_duration")]
+ public long PromptEvalDuration { get; set; }
+
+ ///
+ /// Number of tokens the response.
+ /// Example: 113
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eval_count")]
+ public int EvalCount { get; set; }
+
+ ///
+ /// Time in nanoseconds spent generating the response.
+ /// Example: 1325948000
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("eval_duration")]
+ public long EvalDuration { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingRequest.g.cs
new file mode 100644
index 0000000..bd725ac
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingRequest.g.cs
@@ -0,0 +1,50 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Generate embeddings from a model.
+ ///
+ public sealed partial class GenerateEmbeddingRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// Text to generate embeddings for.
+ /// Example: Here is an article about llamas...
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Prompt { get; set; }
+
+ ///
+ /// Additional model parameters listed in the documentation for the Modelfile such as `temperature`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("options")]
+ public RequestOptions? Options { get; set; }
+
+ ///
+ /// How long (in minutes) to keep the model loaded in memory.
+ /// - If set to a positive duration (e.g. 20), the model will stay loaded for the provided duration.
+ /// - If set to a negative duration (e.g. -1), the model will stay loaded indefinitely.
+ /// - If set to 0, the model will be unloaded immediately once finished.
+ /// - If not set, the model will stay loaded for 5 minutes by default
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("keep_alive")]
+ public int? KeepAlive { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingResponse.g.cs
new file mode 100644
index 0000000..deed0db
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.GenerateEmbeddingResponse.g.cs
@@ -0,0 +1,24 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Returns the embedding information.
+ ///
+ public sealed partial class GenerateEmbeddingResponse
+ {
+ ///
+ /// The embedding for the prompt.
+ /// Example: [0.5670403838157654, 0.009260174818336964, ...]
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("embedding")]
+ public global::System.Collections.Generic.IList? Embedding { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.LocalModel.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.LocalModel.g.cs
new file mode 100644
index 0000000..c7cb1bc
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.LocalModel.g.cs
@@ -0,0 +1,52 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// A model available locally.
+ ///
+ public sealed partial class LocalModel
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ public string? Model { get; set; }
+
+ ///
+ /// Model modification date.
+ /// Example:
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modified_at")]
+ public global::System.DateTime ModifiedAt { get; set; }
+
+ ///
+ /// Size of the model on disk.
+ /// Example: 7323310500
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size")]
+ public long Size { get; set; }
+
+ ///
+ /// The model's digest.
+ /// Example: sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("digest")]
+ public string? Digest { get; set; }
+
+ ///
+ /// Details about a model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("details")]
+ public ModelDetails? Details { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.Message.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.Message.g.cs
new file mode 100644
index 0000000..8d3bf8d
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.Message.g.cs
@@ -0,0 +1,39 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// A message in the chat endpoint
+ ///
+ public sealed partial class Message
+ {
+ ///
+ /// The role of the message
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("role")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.MessageRoleJsonConverter))]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required MessageRole Role { get; set; }
+
+ ///
+ /// The content of the message
+ /// Example: Why is the sky blue?
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("content")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Content { get; set; }
+
+ ///
+ /// (optional) a list of Base64-encoded images to include in the message (for multimodal models such as llava)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("images")]
+ public global::System.Collections.Generic.IList? Images { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.MessageRole.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.MessageRole.g.cs
new file mode 100644
index 0000000..af76fc6
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.MessageRole.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The role of the message
+ ///
+ public enum MessageRole
+ {
+ ///
+ ///
+ ///
+ System,
+ ///
+ ///
+ ///
+ User,
+ ///
+ ///
+ ///
+ Assistant,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class MessageRoleExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this MessageRole value)
+ {
+ return value switch
+ {
+ MessageRole.System => "system",
+ MessageRole.User => "user",
+ MessageRole.Assistant => "assistant",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static MessageRole? ToEnum(string value)
+ {
+ return value switch
+ {
+ "system" => MessageRole.System,
+ "user" => MessageRole.User,
+ "assistant" => MessageRole.Assistant,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelDetails.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelDetails.g.cs
new file mode 100644
index 0000000..360c03f
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelDetails.g.cs
@@ -0,0 +1,53 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Details about a model.
+ ///
+ public sealed partial class ModelDetails
+ {
+ ///
+ /// The parent model of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("parent_model")]
+ public string? ParentModel { get; set; }
+
+ ///
+ /// The format of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("format")]
+ public string? Format { get; set; }
+
+ ///
+ /// The family of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("family")]
+ public string? Family { get; set; }
+
+ ///
+ /// The families of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("families")]
+ public global::System.Collections.Generic.IList? Families { get; set; }
+
+ ///
+ /// The size of the model's parameters.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("parameter_size")]
+ public string? ParameterSize { get; set; }
+
+ ///
+ /// The quantization level of the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("quantization_level")]
+ public string? QuantizationLevel { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfo.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfo.g.cs
new file mode 100644
index 0000000..bf8c551
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfo.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Details about a model including modelfile, template, parameters, license, and system prompt.
+ ///
+ public sealed partial class ModelInfo
+ {
+ ///
+ /// The model's license.
+ /// Example: <contents of license block>
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("license")]
+ public string? License { get; set; }
+
+ ///
+ /// The modelfile associated with the model.
+ /// Example: Modelfile generated by \"ollama show\"\n# To build a new Modelfile based on this one, replace the FROM line with:\n# FROM llama3:latest\n\nFROM /Users/username/.ollama/models/blobs/sha256:8daa9615cce30c259a9555b1cc250d461d1bc69980a274b44d7eda0be78076d8\nTEMPLATE \"\"\"[INST] {{ if and .First .System }}<<SYS>>{{ .System }}<</SYS>>\n\n{{ end }}{{ .Prompt }} [/INST] \"\"\"\nSYSTEM \"\"\"\"\"\"\nPARAMETER stop [INST]\nPARAMETER stop [/INST]\nPARAMETER stop <<SYS>>\nPARAMETER stop <</SYS>>\n"
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modelfile")]
+ public string? Modelfile { get; set; }
+
+ ///
+ /// The model parameters.
+ /// Example: stop [INST]\nstop [/INST]\nstop <<SYS>>\nstop <</SYS>>
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("parameters")]
+ public string? Parameters { get; set; }
+
+ ///
+ /// The prompt template for the model.
+ /// Example: [INST] {{ if and .First .System }}<<SYS>>{{ .System }}<</SYS>>\n\n{{ end }}{{ .Prompt }} [/INST]
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("template")]
+ public string? Template { get; set; }
+
+ ///
+ /// The system prompt for the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("system")]
+ public string? System { get; set; }
+
+ ///
+ /// Details about a model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("details")]
+ public ModelDetails? Details { get; set; }
+
+ ///
+ /// The default messages for the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("messages")]
+ public global::System.Collections.Generic.IList? Messages { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfoRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfoRequest.g.cs
new file mode 100644
index 0000000..3895344
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelInfoRequest.g.cs
@@ -0,0 +1,26 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for the show model info endpoint.
+ ///
+ public sealed partial class ModelInfoRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelsResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelsResponse.g.cs
new file mode 100644
index 0000000..b536ad4
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ModelsResponse.g.cs
@@ -0,0 +1,23 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Response class for the list models endpoint.
+ ///
+ public sealed partial class ModelsResponse
+ {
+ ///
+ /// List of models available locally.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("models")]
+ public global::System.Collections.Generic.IList? Models { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelRequest.g.cs
new file mode 100644
index 0000000..d0b77a1
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelRequest.g.cs
@@ -0,0 +1,53 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for pulling a model.
+ ///
+ public sealed partial class PullModelRequest
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// Allow insecure connections to the library.
+ /// Only use this if you are pulling from your own library during development.
+ /// Default Value: false
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("insecure")]
+ public bool Insecure { get; set; } = false;
+
+ ///
+ /// Ollama username.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("username")]
+ public string? Username { get; set; }
+
+ ///
+ /// Ollama password.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("password")]
+ public string? Password { get; set; }
+
+ ///
+ /// If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects.
+ /// Default Value: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")]
+ public bool Stream { get; set; } = true;
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponse.g.cs
new file mode 100644
index 0000000..00f7293
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponse.g.cs
@@ -0,0 +1,48 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Response class for pulling a model.
+ /// The first object is the manifest. Then there is a series of downloading responses. Until any of the download is completed, the `completed` key may not be included.
+ /// The number of files to be downloaded depends on the number of layers specified in the manifest.
+ ///
+ public sealed partial class PullModelResponse
+ {
+ ///
+ /// Status pulling the model.
+ /// Example: pulling manifest
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
+ public global::System.AnyOf Status { get; set; }
+
+ ///
+ /// The model's digest.
+ /// Example: sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("digest")]
+ public string? Digest { get; set; }
+
+ ///
+ /// Total size of the model.
+ /// Example: 2142590208
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total")]
+ public long Total { get; set; }
+
+ ///
+ /// Total bytes transferred.
+ /// Example: 2142590208
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("completed")]
+ public long Completed { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponseStatus.g.cs
new file mode 100644
index 0000000..848867b
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelResponseStatus.g.cs
@@ -0,0 +1,75 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ ///
+ ///
+ public enum PullModelResponseStatus
+ {
+ ///
+ ///
+ ///
+ PullingManifest,
+ ///
+ ///
+ ///
+ DownloadingDigestname,
+ ///
+ ///
+ ///
+ VerifyingSha256Digest,
+ ///
+ ///
+ ///
+ WritingManifest,
+ ///
+ ///
+ ///
+ RemovingAnyUnusedLayers,
+ ///
+ ///
+ ///
+ Success,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class PullModelResponseStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this PullModelResponseStatus value)
+ {
+ return value switch
+ {
+ PullModelResponseStatus.PullingManifest => "pulling manifest",
+ PullModelResponseStatus.DownloadingDigestname => "downloading digestname",
+ PullModelResponseStatus.VerifyingSha256Digest => "verifying sha256 digest",
+ PullModelResponseStatus.WritingManifest => "writing manifest",
+ PullModelResponseStatus.RemovingAnyUnusedLayers => "removing any unused layers",
+ PullModelResponseStatus.Success => "success",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static PullModelResponseStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "pulling manifest" => PullModelResponseStatus.PullingManifest,
+ "downloading digestname" => PullModelResponseStatus.DownloadingDigestname,
+ "verifying sha256 digest" => PullModelResponseStatus.VerifyingSha256Digest,
+ "writing manifest" => PullModelResponseStatus.WritingManifest,
+ "removing any unused layers" => PullModelResponseStatus.RemovingAnyUnusedLayers,
+ "success" => PullModelResponseStatus.Success,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelStatus.g.cs
new file mode 100644
index 0000000..dab0986
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PullModelStatus.g.cs
@@ -0,0 +1,19 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Status pulling the model.
+ /// Example: pulling manifest
+ ///
+ public sealed partial class PullModelStatus
+ {
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelRequest.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelRequest.g.cs
new file mode 100644
index 0000000..bdb41b0
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelRequest.g.cs
@@ -0,0 +1,52 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Request class for pushing a model.
+ ///
+ public sealed partial class PushModelRequest
+ {
+ ///
+ /// The name of the model to push in the form of <namespace>/<model>:<tag>.
+ /// Example: mattw/pygmalion:latest
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ [global::System.Text.Json.Serialization.JsonRequired]
+ public required string Model { get; set; }
+
+ ///
+ /// Allow insecure connections to the library.
+ /// Only use this if you are pushing to your library during development.
+ /// Default Value: false
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("insecure")]
+ public bool Insecure { get; set; } = false;
+
+ ///
+ /// Ollama username.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("username")]
+ public string? Username { get; set; }
+
+ ///
+ /// Ollama password.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("password")]
+ public string? Password { get; set; }
+
+ ///
+ /// If `false` the response will be returned as a single response object, otherwise the response will be streamed as a series of objects.
+ /// Default Value: true
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stream")]
+ public bool Stream { get; set; } = true;
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponse.g.cs
new file mode 100644
index 0000000..c756886
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponse.g.cs
@@ -0,0 +1,45 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Response class for pushing a model.
+ ///
+ public sealed partial class PushModelResponse
+ {
+ ///
+ /// Status pushing the model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")]
+ [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
+ public global::System.AnyOf Status { get; set; }
+
+ ///
+ /// the model's digest
+ /// Example: sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("digest")]
+ public string? Digest { get; set; }
+
+ ///
+ /// total size of the model
+ /// Example: 2142590208
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("total")]
+ public long Total { get; set; }
+
+ ///
+ /// Total bytes transferred.
+ /// Example: 2142590208
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("completed")]
+ public long Completed { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponseStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponseStatus.g.cs
new file mode 100644
index 0000000..5f18f17
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelResponseStatus.g.cs
@@ -0,0 +1,63 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ ///
+ ///
+ public enum PushModelResponseStatus
+ {
+ ///
+ ///
+ ///
+ RetrievingManifest,
+ ///
+ ///
+ ///
+ StartingUpload,
+ ///
+ ///
+ ///
+ PushingManifest,
+ ///
+ ///
+ ///
+ Success,
+ }
+
+ ///
+ /// Enum extensions to do fast conversions without the reflection.
+ ///
+ public static class PushModelResponseStatusExtensions
+ {
+ ///
+ /// Converts an enum to a string.
+ ///
+ public static string ToValueString(this PushModelResponseStatus value)
+ {
+ return value switch
+ {
+ PushModelResponseStatus.RetrievingManifest => "retrieving manifest",
+ PushModelResponseStatus.StartingUpload => "starting upload",
+ PushModelResponseStatus.PushingManifest => "pushing manifest",
+ PushModelResponseStatus.Success => "success",
+ _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
+ };
+ }
+ ///
+ /// Converts an string to a enum.
+ ///
+ public static PushModelResponseStatus? ToEnum(string value)
+ {
+ return value switch
+ {
+ "retrieving manifest" => PushModelResponseStatus.RetrievingManifest,
+ "starting upload" => PushModelResponseStatus.StartingUpload,
+ "pushing manifest" => PushModelResponseStatus.PushingManifest,
+ "success" => PushModelResponseStatus.Success,
+ _ => null,
+ };
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelStatus.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelStatus.g.cs
new file mode 100644
index 0000000..c29fc4c
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.PushModelStatus.g.cs
@@ -0,0 +1,18 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Status pushing the model.
+ ///
+ public sealed partial class PushModelStatus
+ {
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RequestOptions.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RequestOptions.g.cs
new file mode 100644
index 0000000..f4168b8
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RequestOptions.g.cs
@@ -0,0 +1,197 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Additional model parameters listed in the documentation for the Modelfile such as `temperature`.
+ ///
+ public sealed partial class RequestOptions
+ {
+ ///
+ /// Number of tokens to keep from the prompt.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_keep")]
+ public int? NumKeep { get; set; }
+
+ ///
+ /// Sets the random number seed to use for generation. Setting this to a specific number will make the model generate the same text for the same prompt. (Default: 0)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("seed")]
+ public int? Seed { get; set; }
+
+ ///
+ /// Maximum number of tokens to predict when generating text. (Default: 128, -1 = infinite generation, -2 = fill context)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_predict")]
+ public int? NumPredict { get; set; }
+
+ ///
+ /// Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative. (Default: 40)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("top_k")]
+ public int? TopK { get; set; }
+
+ ///
+ /// Works together with top-k. A higher value (e.g., 0.95) will lead to more diverse text, while a lower value (e.g., 0.5) will generate more focused and conservative text. (Default: 0.9)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("top_p")]
+ public float? TopP { get; set; }
+
+ ///
+ /// Tail free sampling is used to reduce the impact of less probable tokens from the output. A higher value (e.g., 2.0) will reduce the impact more, while a value of 1.0 disables this setting. (default: 1)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tfs_z")]
+ public float? TfsZ { get; set; }
+
+ ///
+ /// Typical p is used to reduce the impact of less probable tokens from the output.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("typical_p")]
+ public float? TypicalP { get; set; }
+
+ ///
+ /// Sets how far back for the model to look back to prevent repetition. (Default: 64, 0 = disabled, -1 = num_ctx)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("repeat_last_n")]
+ public int? RepeatLastN { get; set; }
+
+ ///
+ /// The temperature of the model. Increasing the temperature will make the model answer more creatively. (Default: 0.8)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
+ public float? Temperature { get; set; }
+
+ ///
+ /// Sets how strongly to penalize repetitions. A higher value (e.g., 1.5) will penalize repetitions more strongly, while a lower value (e.g., 0.9) will be more lenient. (Default: 1.1)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("repeat_penalty")]
+ public float? RepeatPenalty { get; set; }
+
+ ///
+ /// Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("presence_penalty")]
+ public float? PresencePenalty { get; set; }
+
+ ///
+ /// Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("frequency_penalty")]
+ public float? FrequencyPenalty { get; set; }
+
+ ///
+ /// Enable Mirostat sampling for controlling perplexity. (default: 0, 0 = disabled, 1 = Mirostat, 2 = Mirostat 2.0)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mirostat")]
+ public int? Mirostat { get; set; }
+
+ ///
+ /// Controls the balance between coherence and diversity of the output. A lower value will result in more focused and coherent text. (Default: 5.0)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mirostat_tau")]
+ public float? MirostatTau { get; set; }
+
+ ///
+ /// Influences how quickly the algorithm responds to feedback from the generated text. A lower learning rate will result in slower adjustments, while a higher learning rate will make the algorithm more responsive. (Default: 0.1)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mirostat_eta")]
+ public float? MirostatEta { get; set; }
+
+ ///
+ /// Penalize newlines in the output. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("penalize_newline")]
+ public bool? PenalizeNewline { get; set; }
+
+ ///
+ /// Sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("stop")]
+ public global::System.Collections.Generic.IList? Stop { get; set; }
+
+ ///
+ /// Enable NUMA support. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("numa")]
+ public bool? Numa { get; set; }
+
+ ///
+ /// Sets the size of the context window used to generate the next token.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_ctx")]
+ public int? NumCtx { get; set; }
+
+ ///
+ /// Sets the number of batches to use for generation. (Default: 1)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_batch")]
+ public int? NumBatch { get; set; }
+
+ ///
+ /// The number of GQA groups in the transformer layer. Required for some models, for example it is 8 for `llama3:70b`.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_gqa")]
+ public int? NumGqa { get; set; }
+
+ ///
+ /// The number of layers to send to the GPU(s). On macOS it defaults to 1 to enable metal support, 0 to disable.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_gpu")]
+ public int? NumGpu { get; set; }
+
+ ///
+ /// The GPU to use for the main model. Default is 0.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("main_gpu")]
+ public int? MainGpu { get; set; }
+
+ ///
+ /// Enable low VRAM mode. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("low_vram")]
+ public bool? LowVram { get; set; }
+
+ ///
+ /// Enable f16 key/value. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("f16_kv")]
+ public bool? F16Kv { get; set; }
+
+ ///
+ /// Enable logits all. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("logits_all")]
+ public bool? LogitsAll { get; set; }
+
+ ///
+ /// Enable vocab only. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("vocab_only")]
+ public bool? VocabOnly { get; set; }
+
+ ///
+ /// Enable mmap. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("use_mmap")]
+ public bool? UseMmap { get; set; }
+
+ ///
+ /// Enable mlock. (Default: false)
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("use_mlock")]
+ public bool? UseMlock { get; set; }
+
+ ///
+ /// Sets the number of threads to use during computation. By default, Ollama will detect this for optimal performance. It is recommended to set this value to the number of physical CPU cores your system has (as opposed to the logical number of cores).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("num_thread")]
+ public int? NumThread { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ResponseFormat.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ResponseFormat.g.cs
new file mode 100644
index 0000000..90bbc2b
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.ResponseFormat.g.cs
@@ -0,0 +1,20 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// The format to return a response in. Currently the only accepted value is json.
+ /// Enable JSON mode by setting the format parameter to json. This will structure the response as valid JSON.
+ /// Note: it's important to instruct the model to use JSON in the prompt. Otherwise, the model may generate large amounts whitespace.
+ ///
+ public sealed partial class ResponseFormat
+ {
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModel.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModel.g.cs
new file mode 100644
index 0000000..5d6a694
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModel.g.cs
@@ -0,0 +1,65 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// A model available locally.
+ ///
+ public sealed partial class RunningModel
+ {
+ ///
+ /// The model name.
+ /// 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.
+ /// Example: llama3:8b
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")]
+ public string? Model { get; set; }
+
+ ///
+ /// Model modification date.
+ /// Example:
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modified_at")]
+ public global::System.DateTime ModifiedAt { get; set; }
+
+ ///
+ /// Example:
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("expires_at")]
+ public global::System.DateTime ExpiresAt { get; set; }
+
+ ///
+ /// Size of the model on disk.
+ /// Example: 7323310500
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size")]
+ public long Size { get; set; }
+
+ ///
+ /// Size of the model on disk.
+ /// Example: 7323310500
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size_vram")]
+ public long SizeVram { get; set; }
+
+ ///
+ /// The model's digest.
+ /// Example: sha256:bc07c81de745696fdf5afca05e065818a8149fb0c77266fb584d9b2cba3711a
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("digest")]
+ public string? Digest { get; set; }
+
+ ///
+ /// Details about a model.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("details")]
+ public ModelDetails? Details { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModelsResponse.g.cs b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModelsResponse.g.cs
new file mode 100644
index 0000000..9a204ab
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.Models.RunningModelsResponse.g.cs
@@ -0,0 +1,23 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Response class for the list running models endpoint.
+ ///
+ public sealed partial class RunningModelsResponse
+ {
+ ///
+ /// List of running models.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("models")]
+ public global::System.Collections.Generic.IList? Models { get; set; }
+
+ ///
+ /// Additional properties that are not explicitly defined in the schema
+ ///
+ [global::System.Text.Json.Serialization.JsonExtensionData]
+ public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary();
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs
new file mode 100644
index 0000000..be3489d
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs
@@ -0,0 +1,22 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that null is allowed as an input even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class AllowNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs
new file mode 100644
index 0000000..d1e140c
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs
@@ -0,0 +1,22 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that null is disallowed as an input even if the corresponding type allows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DisallowNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs
new file mode 100644
index 0000000..a36afb7
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs
@@ -0,0 +1,18 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Applied to a method that will never return under any circumstance.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Method, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DoesNotReturnAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs
new file mode 100644
index 0000000..d344020
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs
@@ -0,0 +1,31 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DoesNotReturnIfAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified parameter value.
+ ///
+ ///
+ /// The condition parameter value. Code after the method will be considered unreachable
+ /// by diagnostics if the argument to the associated parameter matches this value.
+ ///
+ public DoesNotReturnIfAttribute(bool parameterValue) => ParameterValue = parameterValue;
+
+ ///
+ /// Gets the condition parameter value.
+ ///
+ public bool ParameterValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs
new file mode 100644
index 0000000..5cf8b94
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs
@@ -0,0 +1,62 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Indicates that an API is experimental and it may change in the future.
+ ///
+ ///
+ /// This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental
+ /// feature is used. Authors can use this attribute to ship preview features in their assemblies.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Assembly |
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Enum |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Event |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Delegate,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class ExperimentalAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class,
+ /// specifying the ID that the compiler will use when reporting a use of the API the attribute applies to.
+ ///
+ /// The ID that the compiler will use when reporting a use of the API the attribute applies to.
+ public ExperimentalAttribute(string diagnosticId)
+ {
+ DiagnosticId = diagnosticId;
+ }
+
+ ///
+ /// Gets the ID that the compiler will use when reporting a use of the API the attribute applies to.
+ ///
+ /// The unique diagnostic ID.
+ ///
+ /// The diagnostic ID is shown in build output for warnings and errors.
+ /// This property represents the unique ID that can be used to suppress the warnings or errors, if needed.
+ ///
+ public string DiagnosticId { get; }
+
+ ///
+ /// Gets or sets the URL for corresponding documentation.
+ /// The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.
+ ///
+ /// The format string that represents a URL to corresponding documentation.
+ /// An example format string is https://contoso.com/obsoletion-warnings/{0}.
+ public string? UrlFormat { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs
new file mode 100644
index 0000000..a51fae7
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs
@@ -0,0 +1,23 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that an output may be null even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MaybeNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs
new file mode 100644
index 0000000..d621fc8
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs
@@ -0,0 +1,28 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MaybeNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter may be null.
+ public MaybeNullWhenAttribute(bool returnValue) => ReturnValue = returnValue;
+
+ ///
+ /// Gets the return value condition.
+ ///
+ public bool ReturnValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs
new file mode 100644
index 0000000..2507904
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs
@@ -0,0 +1,37 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method or property will ensure that the listed field and property members have not-null values.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property,
+ Inherited = false, AllowMultiple = true)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MemberNotNullAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with a field or property member.
+ ///
+ /// The field or property member that is promised to be not-null.
+ public MemberNotNullAttribute(string member) => Members = new[] { member };
+
+ ///
+ /// Initializes the attribute with the list of field and property members.
+ ///
+ /// The list of field and property members that are promised to be not-null.
+ public MemberNotNullAttribute(params string[] members) => Members = members;
+
+ ///
+ /// Gets field or property member names.
+ ///
+ public string[] Members { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs
new file mode 100644
index 0000000..3578eeb
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs
@@ -0,0 +1,53 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method or property will ensure that the listed field and property
+ /// members have not-null values when returning with the specified return value condition.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property,
+ Inherited = false, AllowMultiple = true)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MemberNotNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition and a field or property member.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ /// The field or property member that is promised to be not-null.
+ public MemberNotNullWhenAttribute(bool returnValue, string member)
+ {
+ ReturnValue = returnValue;
+ Members = new[] { member };
+ }
+
+ ///
+ /// Initializes the attribute with the specified return value condition and list of field and property members.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ /// The list of field and property members that are promised to be not-null.
+ public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
+ {
+ ReturnValue = returnValue;
+ Members = members;
+ }
+
+ ///
+ /// Gets the return value condition.
+ ///
+ public bool ReturnValue { get; }
+
+ ///
+ /// Gets field or property member names.
+ ///
+ public string[] Members { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs
new file mode 100644
index 0000000..daf416a
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs
@@ -0,0 +1,24 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that an output will not be null even if the corresponding type allows it.
+ /// Specifies that an input argument was not null when the call returns.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs
new file mode 100644
index 0000000..5237042
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs
@@ -0,0 +1,35 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the output will be non-null if the named parameter is non-null.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ AllowMultiple = true, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullIfNotNullAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the associated parameter name.
+ ///
+ /// The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
+ public NotNullIfNotNullAttribute(string parameterName)
+ {
+ ParameterName = parameterName;
+ }
+
+ ///
+ /// Gets the associated parameter name.
+ ///
+ public string ParameterName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
new file mode 100644
index 0000000..7c47fad
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
@@ -0,0 +1,29 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ public NotNullWhenAttribute(bool returnValue)
+ {
+ ReturnValue = returnValue;
+ }
+
+ /// Gets the return value condition.
+ public bool ReturnValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs
new file mode 100644
index 0000000..5bb243b
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs
@@ -0,0 +1,19 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that this constructor sets all required members for the current type,
+ /// and callers do not need to set any required members themselves.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class SetsRequiredMembersAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs
new file mode 100644
index 0000000..c2b42d1
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies the syntax used in a string.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Property,
+ AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class StringSyntaxAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the with the identifier of the syntax used.
+ ///
+ /// The syntax identifier.
+ public StringSyntaxAttribute(string syntax)
+ {
+ Syntax = syntax;
+ Arguments = new object?[0];
+ }
+
+ /// Initializes the with the identifier of the syntax used.
+ /// The syntax identifier.
+ /// Optional arguments associated with the specific syntax employed.
+ public StringSyntaxAttribute(string syntax, params object?[] arguments)
+ {
+ Syntax = syntax;
+ Arguments = arguments;
+ }
+
+ /// Gets the identifier of the syntax used.
+ public string Syntax { get; }
+
+ /// Optional arguments associated with the specific syntax employed.
+ public object?[] Arguments { get; }
+
+ /// The syntax identifier for strings containing composite formats for string formatting.
+ public const string CompositeFormat = nameof(CompositeFormat);
+
+ /// The syntax identifier for strings containing date format specifiers.
+ public const string DateOnlyFormat = nameof(DateOnlyFormat);
+
+ /// The syntax identifier for strings containing date and time format specifiers.
+ public const string DateTimeFormat = nameof(DateTimeFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string EnumFormat = nameof(EnumFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string GuidFormat = nameof(GuidFormat);
+
+ /// The syntax identifier for strings containing JavaScript Object Notation (JSON).
+ public const string Json = nameof(Json);
+
+ /// The syntax identifier for strings containing numeric format specifiers.
+ public const string NumericFormat = nameof(NumericFormat);
+
+ /// The syntax identifier for strings containing regular expressions.
+ public const string Regex = nameof(Regex);
+
+ /// The syntax identifier for strings containing time format specifiers.
+ public const string TimeOnlyFormat = nameof(TimeOnlyFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string TimeSpanFormat = nameof(TimeSpanFormat);
+
+ /// The syntax identifier for strings containing URIs.
+ public const string Uri = nameof(Uri);
+
+ /// The syntax identifier for strings containing XML.
+ public const string Xml = nameof(Xml);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
new file mode 100644
index 0000000..9757fde
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
@@ -0,0 +1,44 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Used to indicate a byref escapes and is not scoped.
+ ///
+ ///
+ ///
+ /// There are several cases where the C# compiler treats a as implicitly
+ /// - where the compiler does not allow the to escape the method.
+ ///
+ ///
+ /// For example:
+ ///
+ /// for instance methods.
+ /// parameters that refer to types.
+ /// parameters.
+ ///
+ ///
+ ///
+ /// This attribute is used in those instances where the should be allowed to escape.
+ ///
+ ///
+ /// Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for
+ /// API authors to understand the lifetime implications of applying this attribute and how it may impact their users.
+ ///
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Parameter,
+ AllowMultiple = false,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class UnscopedRefAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs
new file mode 100644
index 0000000..7c94492
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs
@@ -0,0 +1,156 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System
+{
+ /// Represent a type can be used to index a collection either from the start or the end.
+ ///
+ /// Index is used by the C# compiler to support the new index syntax
+ ///
+ /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ;
+ /// int lastElement = someArray[^1]; // lastElement = 5
+ ///
+ ///
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal readonly struct Index : global::System.IEquatable
+ {
+ private readonly int _value;
+
+ /// Construct an Index using a value and indicating if the index is from the start or from the end.
+ /// The index value. it has to be zero or positive number.
+ /// Indicating if the index is from the start or from the end.
+ ///
+ /// If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public Index(int value, bool fromEnd = false)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ if (fromEnd)
+ _value = ~value;
+ else
+ _value = value;
+ }
+
+ // The following private constructors mainly created for perf reason to avoid the checks
+ private Index(int value)
+ {
+ _value = value;
+ }
+
+ /// Create an Index pointing at first element.
+ public static global::System.Index Start => new global::System.Index(0);
+
+ /// Create an Index pointing at beyond last element.
+ public static global::System.Index End => new global::System.Index(~0);
+
+ /// Create an Index from the start at the position indicated by the value.
+ /// The index value from the start.
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public static global::System.Index FromStart(int value)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ return new global::System.Index(value);
+ }
+
+ /// Create an Index from the end at the position indicated by the value.
+ /// The index value from the end.
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public static global::System.Index FromEnd(int value)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ return new global::System.Index(~value);
+ }
+
+ /// Returns the index value.
+ public int Value
+ {
+ get
+ {
+ if (_value < 0)
+ return ~_value;
+ else
+ return _value;
+ }
+ }
+
+ /// Indicates whether the index is from the start or the end.
+ public bool IsFromEnd => _value < 0;
+
+ /// Calculate the offset from the start using the giving collection length.
+ /// The length of the collection that the Index will be used with. length has to be a positive value
+ ///
+ /// For performance reason, we don't validate the input length parameter and the returned offset value against negative values.
+ /// we don't validate either the returned offset is greater than the input length.
+ /// It is expected Index will be used with collections which always have non negative length/count. If the returned offset is negative and
+ /// then used to index a collection will get out of range exception which will be same affect as the validation.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public int GetOffset(int length)
+ {
+ int offset = _value;
+ if (IsFromEnd)
+ {
+ // offset = length - (~value)
+ // offset = length + (~(~value) + 1)
+ // offset = length + value + 1
+
+ offset += length + 1;
+ }
+ return offset;
+ }
+
+ /// Indicates whether the current Index object is equal to another object of the same type.
+ /// An object to compare with this object
+ public override bool Equals([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? value) => value is global::System.Index && _value == ((global::System.Index)value)._value;
+
+ /// Indicates whether the current Index object is equal to another Index object.
+ /// An object to compare with this object
+ public bool Equals(global::System.Index other) => _value == other._value;
+
+ /// Returns the hash code for this instance.
+ public override int GetHashCode() => _value;
+
+ /// Converts integer number to an Index.
+ public static implicit operator global::System.Index(int value) => FromStart(value);
+
+ /// Converts the value of the current Index object to its equivalent string representation.
+ public override string ToString()
+ {
+ if (IsFromEnd)
+ return ToStringFromEnd();
+
+ return ((uint)Value).ToString();
+ }
+
+ private string ToStringFromEnd()
+ {
+ return '^' + Value.ToString();
+ }
+
+ private static class ThrowHelper
+ {
+ [global::System.Diagnostics.CodeAnalysis.DoesNotReturn]
+ public static void ThrowValueArgumentOutOfRange_NeedNonNegNumException()
+ {
+ throw new global::System.ArgumentOutOfRangeException("value", "Non-negative number required.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs
new file mode 100644
index 0000000..c887825
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs
@@ -0,0 +1,119 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System
+{
+ /// Represent a range has start and end indexes.
+ ///
+ /// Range is used by the C# compiler to support the range syntax.
+ ///
+ /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
+ /// int[] subArray1 = someArray[0..2]; // { 1, 2 }
+ /// int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
+ ///
+ ///
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal readonly struct Range : global::System.IEquatable
+ {
+ /// Represent the inclusive start index of the Range.
+ public global::System.Index Start { get; }
+
+ /// Represent the exclusive end index of the Range.
+ public global::System.Index End { get; }
+
+ /// Construct a Range object using the start and end indexes.
+ /// Represent the inclusive start index of the range.
+ /// Represent the exclusive end index of the range.
+ public Range(global::System.Index start, global::System.Index end)
+ {
+ Start = start;
+ End = end;
+ }
+
+ /// Indicates whether the current Range object is equal to another object of the same type.
+ /// An object to compare with this object
+ public override bool Equals([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? value) =>
+ value is global::System.Range r &&
+ r.Start.Equals(Start) &&
+ r.End.Equals(End);
+
+ /// Indicates whether the current Range object is equal to another Range object.
+ /// An object to compare with this object
+ public bool Equals(global::System.Range other) => other.Start.Equals(Start) && other.End.Equals(End);
+
+ /// Returns the hash code for this instance.
+ public override int GetHashCode()
+ {
+ return global::System.Range.HashHelpers.Combine(Start.GetHashCode(), End.GetHashCode());
+ }
+
+ /// Converts the value of the current Range object to its equivalent string representation.
+ public override string ToString()
+ {
+ return Start.ToString() + ".." + End.ToString();
+ }
+
+ /// Create a Range object starting from start index to the end of the collection.
+ public static global::System.Range StartAt(global::System.Index start) => new global::System.Range(start, global::System.Index.End);
+
+ /// Create a Range object starting from first element in the collection to the end Index.
+ public static global::System.Range EndAt(global::System.Index end) => new global::System.Range(global::System.Index.Start, end);
+
+ /// Create a Range object starting from first element to the end.
+ public static global::System.Range All => new global::System.Range(global::System.Index.Start, global::System.Index.End);
+
+ /// Calculate the start offset and length of range object using a collection length.
+ /// The length of the collection that the range will be used with. length has to be a positive value.
+ ///
+ /// For performance reason, we don't validate the input length parameter against negative values.
+ /// It is expected Range will be used with collections which always have non negative length/count.
+ /// We validate the range is inside the length scope though.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public (int Offset, int Length) GetOffsetAndLength(int length)
+ {
+ int start;
+ global::System.Index startIndex = Start;
+ if (startIndex.IsFromEnd)
+ start = length - startIndex.Value;
+ else
+ start = startIndex.Value;
+
+ int end;
+ global::System.Index endIndex = End;
+ if (endIndex.IsFromEnd)
+ end = length - endIndex.Value;
+ else
+ end = endIndex.Value;
+
+ if ((uint)end > (uint)length || (uint)start > (uint)end)
+ {
+ global::System.Range.ThrowHelper.ThrowArgumentOutOfRangeException();
+ }
+
+ return (start, end - start);
+ }
+
+ private static class HashHelpers
+ {
+ public static int Combine(int h1, int h2)
+ {
+ uint rol5 = ((uint)h1 << 5) | ((uint)h1 >> 27);
+ return ((int)rol5 + h1) ^ h2;
+ }
+ }
+
+ private static class ThrowHelper
+ {
+ [global::System.Diagnostics.CodeAnalysis.DoesNotReturn]
+ public static void ThrowArgumentOutOfRangeException()
+ {
+ throw new global::System.ArgumentOutOfRangeException("length");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs
new file mode 100644
index 0000000..da3e4a2
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs
@@ -0,0 +1,31 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// An attribute that allows parameters to receive the expression of other parameters.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CallerArgumentExpressionAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The condition parameter value.
+ public CallerArgumentExpressionAttribute(string parameterName)
+ {
+ ParameterName = parameterName;
+ }
+
+ ///
+ /// Gets the parameter name the expression is retrieved from.
+ ///
+ public string ParameterName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs
new file mode 100644
index 0000000..784248e
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs
@@ -0,0 +1,48 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Interface,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CollectionBuilderAttribute : Attribute
+ {
+ ///
+ /// Initialize the attribute to refer to the method on the type.
+ ///
+ /// The type of the builder to use to construct the collection.
+ /// The name of the method on the builder to use to construct the collection.
+ ///
+ /// must refer to a static method that accepts a single parameter of
+ /// type and returns an instance of the collection being built containing
+ /// a copy of the data from that span. In future releases of .NET, additional patterns may be supported.
+ ///
+ public CollectionBuilderAttribute(Type builderType, string methodName)
+ {
+ BuilderType = builderType;
+ MethodName = methodName;
+ }
+
+ ///
+ /// Gets the type of the builder to use to construct the collection.
+ ///
+ public Type BuilderType { get; }
+
+ ///
+ /// Gets the name of the method on the builder to use to construct the collection.
+ ///
+ ///
+ /// This should match the metadata name of the target method.
+ /// For example, this might be ".ctor" if targeting the type's constructor.
+ ///
+ public string MethodName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs
new file mode 100644
index 0000000..0a4425c
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs
@@ -0,0 +1,46 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates that compiler support for a particular feature is required for the location where this attribute is applied.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.All, AllowMultiple = true, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CompilerFeatureRequiredAttribute : global::System.Attribute
+ {
+ ///
+ /// Creates a new instance of the type.
+ ///
+ /// The name of the feature to indicate.
+ public CompilerFeatureRequiredAttribute(string featureName)
+ {
+ FeatureName = featureName;
+ }
+
+ ///
+ /// The name of the compiler feature.
+ ///
+ public string FeatureName { get; }
+
+ ///
+ /// If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
+ ///
+ public bool IsOptional { get; set; }
+
+ ///
+ /// The used for the ref structs C# feature.
+ ///
+ public const string RefStructs = nameof(RefStructs);
+
+ ///
+ /// The used for the required members C# feature.
+ ///
+ public const string RequiredMembers = nameof(RequiredMembers);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs
new file mode 100644
index 0000000..c613d13
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs
@@ -0,0 +1,43 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class InterpolatedStringHandlerArgumentAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The name of the argument that should be passed to the handler.
+ /// may be used as the name of the receiver in an instance method.
+ public InterpolatedStringHandlerArgumentAttribute(string argument)
+ {
+ Arguments = new string[] { argument };
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The names of the arguments that should be passed to the handler.
+ /// may be used as the name of the receiver in an instance method.
+ public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
+ {
+ Arguments = arguments;
+ }
+
+ ///
+ /// Gets the names of the arguments that should be passed to the handler.
+ ///
+ /// may be used as the name of the receiver in an instance method.
+ public string[] Arguments { get; }
+ }
+}
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs
new file mode 100644
index 0000000..a78ec8f
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs
@@ -0,0 +1,21 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates the attributed type is to be used as an interpolated string handler.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct,
+ AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class InterpolatedStringHandlerAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs
new file mode 100644
index 0000000..3705289
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs
@@ -0,0 +1,4 @@
+//
+#pragma warning disable
+
+[assembly: global::System.Runtime.CompilerServices.TypeForwardedTo(typeof(global::System.Runtime.CompilerServices.IsExternalInit))]
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs
new file mode 100644
index 0000000..17486e1
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs
@@ -0,0 +1,35 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Used to indicate to the compiler that a method should be called
+ /// in its containing module's initializer.
+ ///
+ ///
+ /// When one or more valid methods
+ /// with this attribute are found in a compilation, the compiler will
+ /// emit a module initializer which calls each of the attributed methods.
+ ///
+ /// Certain requirements are imposed on any method targeted with this attribute:
+ /// - The method must be `static`.
+ /// - The method must be an ordinary member method, as opposed to a property accessor, constructor, local function, etc.
+ /// - The method must be parameterless.
+ /// - The method must return `void`.
+ /// - The method must not be generic or be contained in a generic type.
+ /// - The method's effective accessibility must be `internal` or `public`.
+ ///
+ /// The specification for module initializers in the .NET runtime can be found here:
+ /// https://github.com/dotnet/runtime/blob/main/docs/design/specs/Ecma-335-Augments.md#module-initializer
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Method, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class ModuleInitializerAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs
new file mode 100644
index 0000000..030c468
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs
@@ -0,0 +1,24 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Specifies that a type has required members or that a member is required.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Property,
+ AllowMultiple = false,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class RequiredMemberAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs
new file mode 100644
index 0000000..9c821a8
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs
@@ -0,0 +1,4 @@
+//
+#pragma warning disable
+
+[assembly: global::System.Runtime.CompilerServices.TypeForwardedTo(typeof(global::System.Runtime.CompilerServices.RequiresLocationAttribute))]
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs
new file mode 100644
index 0000000..106b8b1
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs
@@ -0,0 +1,27 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Used to indicate to the compiler that the .locals init flag should not be set in method headers.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Event,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class SkipLocalsInitAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs
new file mode 100644
index 0000000..e268078
--- /dev/null
+++ b/src/libs/Ollama.Models/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs
@@ -0,0 +1,52 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.Versioning
+{
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Assembly |
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Delegate |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Enum |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Field |
+ AttributeTargets.Event, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class RequiresPreviewFeaturesAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RequiresPreviewFeaturesAttribute()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class with the specified message.
+ ///
+ /// An optional message associated with this attribute instance.
+ public RequiresPreviewFeaturesAttribute(string? message)
+ {
+ Message = message;
+ }
+
+ ///
+ /// Returns the optional message associated with this attribute instance.
+ ///
+ public string? Message { get; }
+
+ ///
+ /// Returns the optional URL associated with this attribute instance.
+ ///
+ public string? Url { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama.Models/Ollama.Models.csproj b/src/libs/Ollama.Models/Ollama.Models.csproj
index 8f66643..b62c534 100644
--- a/src/libs/Ollama.Models/Ollama.Models.csproj
+++ b/src/libs/Ollama.Models/Ollama.Models.csproj
@@ -16,6 +16,16 @@
truetrue
+
+
+ true
+ Generated
+
+
+
+
+
+
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.GenerateChatCompletion.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.GenerateChatCompletion.g.cs
new file mode 100644
index 0000000..50eb457
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.GenerateChatCompletion.g.cs
@@ -0,0 +1,87 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ChatClient
+ {
+ ///
+ /// Generate the next message in a chat with a provided model.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable GenerateChatCompletionAsync(
+ GenerateChatCompletionRequest request,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/chat", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.GenerateChatCompletionRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+ using var reader = new global::System.IO.StreamReader(stream);
+
+ while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
+ {
+ var __content = await reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ var streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.GenerateChatCompletionResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+
+ yield return streamedResponse;
+ }
+ }
+
+ ///
+ /// Generate the next message in a chat with a provided model.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable GenerateChatCompletionAsync(
+ string model,
+ global::System.Collections.Generic.IList messages,
+ GenerateChatCompletionRequestFormat? format = default,
+ RequestOptions? options = default,
+ bool stream = true,
+ int? keepAlive = default,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new GenerateChatCompletionRequest
+ {
+ Model = model,
+ Messages = messages,
+ Format = format,
+ Options = options,
+ Stream = stream,
+ KeepAlive = keepAlive,
+ };
+
+ var enumerable = GenerateChatCompletionAsync(
+ request: request,
+ cancellationToken: cancellationToken);
+
+ await foreach (var response in enumerable)
+ {
+ yield return response;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.g.cs
new file mode 100644
index 0000000..bdd1183
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ChatClient.g.cs
@@ -0,0 +1,38 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Given a list of messages comprising a conversation, the model will return a response.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class ChatClient : global::System.IDisposable
+ {
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+
+
+ ///
+ /// Creates a new instance of the ChatClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ public ChatClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null
+ )
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri("http://localhost:11434/api");
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.GenerateCompletion.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.GenerateCompletion.g.cs
new file mode 100644
index 0000000..06ece18
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.GenerateCompletion.g.cs
@@ -0,0 +1,102 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class CompletionsClient
+ {
+ ///
+ /// Generate a response for a given prompt with a provided model.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable GenerateCompletionAsync(
+ GenerateCompletionRequest request,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/generate", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.GenerateCompletionRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+ using var reader = new global::System.IO.StreamReader(stream);
+
+ while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
+ {
+ var __content = await reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ var streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.GenerateCompletionResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+
+ yield return streamedResponse;
+ }
+ }
+
+ ///
+ /// Generate a response for a given prompt with a provided model.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable GenerateCompletionAsync(
+ string model,
+ string prompt,
+ global::System.Collections.Generic.IList? images = default,
+ string? system = default,
+ string? template = default,
+ global::System.Collections.Generic.IList? context = default,
+ RequestOptions? options = default,
+ GenerateCompletionRequestFormat? format = default,
+ bool raw = default,
+ bool stream = true,
+ int? keepAlive = default,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new GenerateCompletionRequest
+ {
+ Model = model,
+ Prompt = prompt,
+ Images = images,
+ System = system,
+ Template = template,
+ Context = context,
+ Options = options,
+ Format = format,
+ Raw = raw,
+ Stream = stream,
+ KeepAlive = keepAlive,
+ };
+
+ var enumerable = GenerateCompletionAsync(
+ request: request,
+ cancellationToken: cancellationToken);
+
+ await foreach (var response in enumerable)
+ {
+ yield return response;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.g.cs
new file mode 100644
index 0000000..027775b
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.CompletionsClient.g.cs
@@ -0,0 +1,38 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Given a prompt, the model will generate a completion.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class CompletionsClient : global::System.IDisposable
+ {
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+
+
+ ///
+ /// Creates a new instance of the CompletionsClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ public CompletionsClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null
+ )
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri("http://localhost:11434/api");
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.GenerateEmbedding.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.GenerateEmbedding.g.cs
new file mode 100644
index 0000000..2171a63
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.GenerateEmbedding.g.cs
@@ -0,0 +1,70 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class EmbeddingsClient
+ {
+ ///
+ /// Generate embeddings from a model.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task GenerateEmbeddingAsync(
+ GenerateEmbeddingRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/embeddings", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.GenerateEmbeddingRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ var __content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.GenerateEmbeddingResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+
+ ///
+ /// Generate embeddings from a model.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task GenerateEmbeddingAsync(
+ string model,
+ string prompt,
+ RequestOptions? options = default,
+ int? keepAlive = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new GenerateEmbeddingRequest
+ {
+ Model = model,
+ Prompt = prompt,
+ Options = options,
+ KeepAlive = keepAlive,
+ };
+
+ return await GenerateEmbeddingAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.g.cs
new file mode 100644
index 0000000..50f8b1f
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.EmbeddingsClient.g.cs
@@ -0,0 +1,38 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// Get a vector representation of a given input.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class EmbeddingsClient : global::System.IDisposable
+ {
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+
+
+ ///
+ /// Creates a new instance of the EmbeddingsClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ public EmbeddingsClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null
+ )
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri("http://localhost:11434/api");
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CheckBlob.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CheckBlob.g.cs
new file mode 100644
index 0000000..bca5976
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CheckBlob.g.cs
@@ -0,0 +1,29 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Ensures that the file blob used for a FROM or ADAPTER field exists on the server.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CheckBlobAsync(
+ string digest,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Head,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/blobs/{digest}", global::System.UriKind.RelativeOrAbsolute));
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CopyModel.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CopyModel.g.cs
new file mode 100644
index 0000000..534f590
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CopyModel.g.cs
@@ -0,0 +1,58 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Creates a model with another name from an existing model.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CopyModelAsync(
+ CopyModelRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/copy", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.CopyModelRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+ }
+
+ ///
+ /// Creates a model with another name from an existing model.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CopyModelAsync(
+ string source,
+ string destination,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new CopyModelRequest
+ {
+ Source = source,
+ Destination = destination,
+ };
+
+ await CopyModelAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateBlob.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateBlob.g.cs
new file mode 100644
index 0000000..4ec57c9
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateBlob.g.cs
@@ -0,0 +1,57 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Create a blob from a file. Returns the server file path.
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateBlobAsync(
+ string digest,
+ byte[] request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + $"/blobs/{digest}", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.ByteArray),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+ }
+
+ ///
+ /// Create a blob from a file. Returns the server file path.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task CreateBlobAsync(
+ string digest,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new byte[]
+ {
+ };
+
+ await CreateBlobAsync(
+ digest: digest,
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateModel.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateModel.g.cs
new file mode 100644
index 0000000..945ec9d
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.CreateModel.g.cs
@@ -0,0 +1,84 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Create a model from a Modelfile.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable CreateModelAsync(
+ CreateModelRequest request,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/create", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.CreateModelRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+ using var reader = new global::System.IO.StreamReader(stream);
+
+ while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
+ {
+ var __content = await reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ var streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.CreateModelResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+
+ yield return streamedResponse;
+ }
+ }
+
+ ///
+ /// Create a model from a Modelfile.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable CreateModelAsync(
+ string model,
+ string modelfile,
+ string? path = default,
+ string? quantize = default,
+ bool stream = true,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new CreateModelRequest
+ {
+ Model = model,
+ Modelfile = modelfile,
+ Path = path,
+ Quantize = quantize,
+ Stream = stream,
+ };
+
+ var enumerable = CreateModelAsync(
+ request: request,
+ cancellationToken: cancellationToken);
+
+ await foreach (var response in enumerable)
+ {
+ yield return response;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.DeleteModel.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.DeleteModel.g.cs
new file mode 100644
index 0000000..cd5c086
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.DeleteModel.g.cs
@@ -0,0 +1,55 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Delete a model and its data.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteModelAsync(
+ DeleteModelRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Delete,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/delete", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.DeleteModelRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+ }
+
+ ///
+ /// Delete a model and its data.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task DeleteModelAsync(
+ string model,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new DeleteModelRequest
+ {
+ Model = model,
+ };
+
+ await DeleteModelAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListModels.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListModels.g.cs
new file mode 100644
index 0000000..4bde0d4
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListModels.g.cs
@@ -0,0 +1,33 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// List models that are available locally.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ListModelsAsync(
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/tags", global::System.UriKind.RelativeOrAbsolute));
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ var __content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.ModelsResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListRunningModels.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListRunningModels.g.cs
new file mode 100644
index 0000000..54074bd
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ListRunningModels.g.cs
@@ -0,0 +1,33 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// List models that are running.
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ListRunningModelsAsync(
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Get,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/ps", global::System.UriKind.RelativeOrAbsolute));
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ var __content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.RunningModelsResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PullModel.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PullModel.g.cs
new file mode 100644
index 0000000..53b74c1
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PullModel.g.cs
@@ -0,0 +1,84 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Download a model from the ollama library.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable PullModelAsync(
+ PullModelRequest request,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/pull", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.PullModelRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+ using var reader = new global::System.IO.StreamReader(stream);
+
+ while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
+ {
+ var __content = await reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ var streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.PullModelResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+
+ yield return streamedResponse;
+ }
+ }
+
+ ///
+ /// Download a model from the ollama library.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable PullModelAsync(
+ string model,
+ bool insecure = false,
+ string? username = default,
+ string? password = default,
+ bool stream = true,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new PullModelRequest
+ {
+ Model = model,
+ Insecure = insecure,
+ Username = username,
+ Password = password,
+ Stream = stream,
+ };
+
+ var enumerable = PullModelAsync(
+ request: request,
+ cancellationToken: cancellationToken);
+
+ await foreach (var response in enumerable)
+ {
+ yield return response;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PushModel.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PushModel.g.cs
new file mode 100644
index 0000000..2302622
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.PushModel.g.cs
@@ -0,0 +1,84 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Upload a model to a model library.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable PushModelAsync(
+ PushModelRequest request,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/push", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.PushModelRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ using var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
+ using var reader = new global::System.IO.StreamReader(stream);
+
+ while (!reader.EndOfStream && !cancellationToken.IsCancellationRequested)
+ {
+ var __content = await reader.ReadLineAsync().ConfigureAwait(false) ?? string.Empty;
+ var streamedResponse = global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.PushModelResponse) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+
+ yield return streamedResponse;
+ }
+ }
+
+ ///
+ /// Upload a model to a model library.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Collections.Generic.IAsyncEnumerable PushModelAsync(
+ string model,
+ bool insecure = false,
+ string? username = default,
+ string? password = default,
+ bool stream = true,
+ [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new PushModelRequest
+ {
+ Model = model,
+ Insecure = insecure,
+ Username = username,
+ Password = password,
+ Stream = stream,
+ };
+
+ var enumerable = PushModelAsync(
+ request: request,
+ cancellationToken: cancellationToken);
+
+ await foreach (var response in enumerable)
+ {
+ yield return response;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ShowModelInfo.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ShowModelInfo.g.cs
new file mode 100644
index 0000000..e75c711
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.ShowModelInfo.g.cs
@@ -0,0 +1,61 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ public partial class ModelsClient
+ {
+ ///
+ /// Show details about a model including modelfile, template, parameters, license, and system prompt.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ShowModelInfoAsync(
+ ModelInfoRequest request,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
+ method: global::System.Net.Http.HttpMethod.Post,
+ requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri + "/show", global::System.UriKind.RelativeOrAbsolute));
+ httpRequest.Content = new global::System.Net.Http.StringContent(
+ content: global::System.Text.Json.JsonSerializer.Serialize(request, global::Ollama.SourceGenerationContext.Default.ModelInfoRequest),
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+
+ using var response = await _httpClient.SendAsync(
+ request: httpRequest,
+ completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ response.EnsureSuccessStatusCode();
+
+ var __content = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
+
+ return
+ global::System.Text.Json.JsonSerializer.Deserialize(__content, global::Ollama.SourceGenerationContext.Default.ModelInfo) ??
+ throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
+ }
+
+ ///
+ /// Show details about a model including modelfile, template, parameters, license, and system prompt.
+ ///
+ ///
+ /// The token to cancel the operation with
+ ///
+ public async global::System.Threading.Tasks.Task ShowModelInfoAsync(
+ string model,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var request = new ModelInfoRequest
+ {
+ Model = model,
+ };
+
+ return await ShowModelInfoAsync(
+ request: request,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.g.cs
new file mode 100644
index 0000000..f228e4a
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.ModelsClient.g.cs
@@ -0,0 +1,38 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// List and describe the various models available.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class ModelsClient : global::System.IDisposable
+ {
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+
+
+ ///
+ /// Creates a new instance of the ModelsClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ public ModelsClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null
+ )
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri("http://localhost:11434/api");
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.OllamaApiClient.g.cs b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.OllamaApiClient.g.cs
new file mode 100644
index 0000000..2dd4b72
--- /dev/null
+++ b/src/libs/Ollama/Generated/OpenApiGenerator/OpenApiGenerator.SdkGenerator/Ollama.OllamaApiClient.g.cs
@@ -0,0 +1,58 @@
+
+#nullable enable
+
+namespace Ollama
+{
+ ///
+ /// API Spec for Ollama API. Please see https://github.com/jmorganca/ollama/blob/main/docs/api.md for more details.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ public sealed partial class OllamaApiClient : global::System.IDisposable
+ {
+ private readonly global::System.Net.Http.HttpClient _httpClient;
+
+
+ ///
+ /// Given a prompt, the model will generate a completion.
+ ///
+ public CompletionsClient Completions => new CompletionsClient(_httpClient);
+
+ ///
+ /// Given a list of messages comprising a conversation, the model will return a response.
+ ///
+ public ChatClient Chat => new ChatClient(_httpClient);
+
+ ///
+ /// Get a vector representation of a given input.
+ ///
+ public EmbeddingsClient Embeddings => new EmbeddingsClient(_httpClient);
+
+ ///
+ /// List and describe the various models available.
+ ///
+ public ModelsClient Models => new ModelsClient(_httpClient);
+
+ ///
+ /// Creates a new instance of the OllamaApiClient.
+ /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
+ ///
+ ///
+ ///
+ public OllamaApiClient(
+ global::System.Net.Http.HttpClient? httpClient = null,
+ global::System.Uri? baseUri = null
+ )
+ {
+ _httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
+ _httpClient.BaseAddress ??= baseUri ?? new global::System.Uri("http://localhost:11434/api");
+ }
+
+ ///
+ public void Dispose()
+ {
+ _httpClient.Dispose();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs
new file mode 100644
index 0000000..be3489d
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.AllowNullAttribute.g.cs
@@ -0,0 +1,22 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that null is allowed as an input even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class AllowNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs
new file mode 100644
index 0000000..d1e140c
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DisallowNullAttribute.g.cs
@@ -0,0 +1,22 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that null is disallowed as an input even if the corresponding type allows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DisallowNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs
new file mode 100644
index 0000000..a36afb7
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnAttribute.g.cs
@@ -0,0 +1,18 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Applied to a method that will never return under any circumstance.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Method, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DoesNotReturnAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs
new file mode 100644
index 0000000..d344020
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.DoesNotReturnIfAttribute.g.cs
@@ -0,0 +1,31 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class DoesNotReturnIfAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified parameter value.
+ ///
+ ///
+ /// The condition parameter value. Code after the method will be considered unreachable
+ /// by diagnostics if the argument to the associated parameter matches this value.
+ ///
+ public DoesNotReturnIfAttribute(bool parameterValue) => ParameterValue = parameterValue;
+
+ ///
+ /// Gets the condition parameter value.
+ ///
+ public bool ParameterValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs
new file mode 100644
index 0000000..5cf8b94
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.ExperimentalAttribute.g.cs
@@ -0,0 +1,62 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Indicates that an API is experimental and it may change in the future.
+ ///
+ ///
+ /// This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental
+ /// feature is used. Authors can use this attribute to ship preview features in their assemblies.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Assembly |
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Enum |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Event |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Delegate,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class ExperimentalAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class,
+ /// specifying the ID that the compiler will use when reporting a use of the API the attribute applies to.
+ ///
+ /// The ID that the compiler will use when reporting a use of the API the attribute applies to.
+ public ExperimentalAttribute(string diagnosticId)
+ {
+ DiagnosticId = diagnosticId;
+ }
+
+ ///
+ /// Gets the ID that the compiler will use when reporting a use of the API the attribute applies to.
+ ///
+ /// The unique diagnostic ID.
+ ///
+ /// The diagnostic ID is shown in build output for warnings and errors.
+ /// This property represents the unique ID that can be used to suppress the warnings or errors, if needed.
+ ///
+ public string DiagnosticId { get; }
+
+ ///
+ /// Gets or sets the URL for corresponding documentation.
+ /// The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.
+ ///
+ /// The format string that represents a URL to corresponding documentation.
+ /// An example format string is https://contoso.com/obsoletion-warnings/{0}.
+ public string? UrlFormat { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs
new file mode 100644
index 0000000..a51fae7
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullAttribute.g.cs
@@ -0,0 +1,23 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that an output may be null even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MaybeNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs
new file mode 100644
index 0000000..d621fc8
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MaybeNullWhenAttribute.g.cs
@@ -0,0 +1,28 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MaybeNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter may be null.
+ public MaybeNullWhenAttribute(bool returnValue) => ReturnValue = returnValue;
+
+ ///
+ /// Gets the return value condition.
+ ///
+ public bool ReturnValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs
new file mode 100644
index 0000000..2507904
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullAttribute.g.cs
@@ -0,0 +1,37 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method or property will ensure that the listed field and property members have not-null values.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property,
+ Inherited = false, AllowMultiple = true)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MemberNotNullAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with a field or property member.
+ ///
+ /// The field or property member that is promised to be not-null.
+ public MemberNotNullAttribute(string member) => Members = new[] { member };
+
+ ///
+ /// Initializes the attribute with the list of field and property members.
+ ///
+ /// The list of field and property members that are promised to be not-null.
+ public MemberNotNullAttribute(params string[] members) => Members = members;
+
+ ///
+ /// Gets field or property member names.
+ ///
+ public string[] Members { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs
new file mode 100644
index 0000000..3578eeb
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.MemberNotNullWhenAttribute.g.cs
@@ -0,0 +1,53 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the method or property will ensure that the listed field and property
+ /// members have not-null values when returning with the specified return value condition.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property,
+ Inherited = false, AllowMultiple = true)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class MemberNotNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition and a field or property member.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ /// The field or property member that is promised to be not-null.
+ public MemberNotNullWhenAttribute(bool returnValue, string member)
+ {
+ ReturnValue = returnValue;
+ Members = new[] { member };
+ }
+
+ ///
+ /// Initializes the attribute with the specified return value condition and list of field and property members.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ /// The list of field and property members that are promised to be not-null.
+ public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
+ {
+ ReturnValue = returnValue;
+ Members = members;
+ }
+
+ ///
+ /// Gets the return value condition.
+ ///
+ public bool ReturnValue { get; }
+
+ ///
+ /// Gets field or property member names.
+ ///
+ public string[] Members { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs
new file mode 100644
index 0000000..daf416a
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullAttribute.g.cs
@@ -0,0 +1,24 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that an output will not be null even if the corresponding type allows it.
+ /// Specifies that an input argument was not null when the call returns.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs
new file mode 100644
index 0000000..5237042
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullIfNotNullAttribute.g.cs
@@ -0,0 +1,35 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that the output will be non-null if the named parameter is non-null.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.ReturnValue,
+ AllowMultiple = true, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullIfNotNullAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the associated parameter name.
+ ///
+ /// The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
+ public NotNullIfNotNullAttribute(string parameterName)
+ {
+ ParameterName = parameterName;
+ }
+
+ ///
+ /// Gets the associated parameter name.
+ ///
+ public string ParameterName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
new file mode 100644
index 0000000..7c47fad
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.NotNullWhenAttribute.g.cs
@@ -0,0 +1,29 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class NotNullWhenAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the attribute with the specified return value condition.
+ ///
+ /// The return value condition. If the method returns this value, the associated parameter will not be null.
+ public NotNullWhenAttribute(bool returnValue)
+ {
+ ReturnValue = returnValue;
+ }
+
+ /// Gets the return value condition.
+ public bool ReturnValue { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs
new file mode 100644
index 0000000..5bb243b
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.SetsRequiredMembersAttribute.g.cs
@@ -0,0 +1,19 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies that this constructor sets all required members for the current type,
+ /// and callers do not need to set any required members themselves.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class SetsRequiredMembersAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs
new file mode 100644
index 0000000..c2b42d1
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.StringSyntaxAttribute.g.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Specifies the syntax used in a string.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Parameter |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Property,
+ AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class StringSyntaxAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes the with the identifier of the syntax used.
+ ///
+ /// The syntax identifier.
+ public StringSyntaxAttribute(string syntax)
+ {
+ Syntax = syntax;
+ Arguments = new object?[0];
+ }
+
+ /// Initializes the with the identifier of the syntax used.
+ /// The syntax identifier.
+ /// Optional arguments associated with the specific syntax employed.
+ public StringSyntaxAttribute(string syntax, params object?[] arguments)
+ {
+ Syntax = syntax;
+ Arguments = arguments;
+ }
+
+ /// Gets the identifier of the syntax used.
+ public string Syntax { get; }
+
+ /// Optional arguments associated with the specific syntax employed.
+ public object?[] Arguments { get; }
+
+ /// The syntax identifier for strings containing composite formats for string formatting.
+ public const string CompositeFormat = nameof(CompositeFormat);
+
+ /// The syntax identifier for strings containing date format specifiers.
+ public const string DateOnlyFormat = nameof(DateOnlyFormat);
+
+ /// The syntax identifier for strings containing date and time format specifiers.
+ public const string DateTimeFormat = nameof(DateTimeFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string EnumFormat = nameof(EnumFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string GuidFormat = nameof(GuidFormat);
+
+ /// The syntax identifier for strings containing JavaScript Object Notation (JSON).
+ public const string Json = nameof(Json);
+
+ /// The syntax identifier for strings containing numeric format specifiers.
+ public const string NumericFormat = nameof(NumericFormat);
+
+ /// The syntax identifier for strings containing regular expressions.
+ public const string Regex = nameof(Regex);
+
+ /// The syntax identifier for strings containing time format specifiers.
+ public const string TimeOnlyFormat = nameof(TimeOnlyFormat);
+
+ /// The syntax identifier for strings containing format specifiers.
+ public const string TimeSpanFormat = nameof(TimeSpanFormat);
+
+ /// The syntax identifier for strings containing URIs.
+ public const string Uri = nameof(Uri);
+
+ /// The syntax identifier for strings containing XML.
+ public const string Xml = nameof(Xml);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
new file mode 100644
index 0000000..9757fde
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Diagnostics.CodeAnalysis.UnscopedRefAttribute.g.cs
@@ -0,0 +1,44 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Diagnostics.CodeAnalysis
+{
+ ///
+ /// Used to indicate a byref escapes and is not scoped.
+ ///
+ ///
+ ///
+ /// There are several cases where the C# compiler treats a as implicitly
+ /// - where the compiler does not allow the to escape the method.
+ ///
+ ///
+ /// For example:
+ ///
+ /// for instance methods.
+ /// parameters that refer to types.
+ /// parameters.
+ ///
+ ///
+ ///
+ /// This attribute is used in those instances where the should be allowed to escape.
+ ///
+ ///
+ /// Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for
+ /// API authors to understand the lifetime implications of applying this attribute and how it may impact their users.
+ ///
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Parameter,
+ AllowMultiple = false,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class UnscopedRefAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs
new file mode 100644
index 0000000..7c94492
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Index.g.cs
@@ -0,0 +1,156 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System
+{
+ /// Represent a type can be used to index a collection either from the start or the end.
+ ///
+ /// Index is used by the C# compiler to support the new index syntax
+ ///
+ /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ;
+ /// int lastElement = someArray[^1]; // lastElement = 5
+ ///
+ ///
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal readonly struct Index : global::System.IEquatable
+ {
+ private readonly int _value;
+
+ /// Construct an Index using a value and indicating if the index is from the start or from the end.
+ /// The index value. it has to be zero or positive number.
+ /// Indicating if the index is from the start or from the end.
+ ///
+ /// If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public Index(int value, bool fromEnd = false)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ if (fromEnd)
+ _value = ~value;
+ else
+ _value = value;
+ }
+
+ // The following private constructors mainly created for perf reason to avoid the checks
+ private Index(int value)
+ {
+ _value = value;
+ }
+
+ /// Create an Index pointing at first element.
+ public static global::System.Index Start => new global::System.Index(0);
+
+ /// Create an Index pointing at beyond last element.
+ public static global::System.Index End => new global::System.Index(~0);
+
+ /// Create an Index from the start at the position indicated by the value.
+ /// The index value from the start.
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public static global::System.Index FromStart(int value)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ return new global::System.Index(value);
+ }
+
+ /// Create an Index from the end at the position indicated by the value.
+ /// The index value from the end.
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public static global::System.Index FromEnd(int value)
+ {
+ if (value < 0)
+ {
+ global::System.Index.ThrowHelper.ThrowValueArgumentOutOfRange_NeedNonNegNumException();
+ }
+
+ return new global::System.Index(~value);
+ }
+
+ /// Returns the index value.
+ public int Value
+ {
+ get
+ {
+ if (_value < 0)
+ return ~_value;
+ else
+ return _value;
+ }
+ }
+
+ /// Indicates whether the index is from the start or the end.
+ public bool IsFromEnd => _value < 0;
+
+ /// Calculate the offset from the start using the giving collection length.
+ /// The length of the collection that the Index will be used with. length has to be a positive value
+ ///
+ /// For performance reason, we don't validate the input length parameter and the returned offset value against negative values.
+ /// we don't validate either the returned offset is greater than the input length.
+ /// It is expected Index will be used with collections which always have non negative length/count. If the returned offset is negative and
+ /// then used to index a collection will get out of range exception which will be same affect as the validation.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public int GetOffset(int length)
+ {
+ int offset = _value;
+ if (IsFromEnd)
+ {
+ // offset = length - (~value)
+ // offset = length + (~(~value) + 1)
+ // offset = length + value + 1
+
+ offset += length + 1;
+ }
+ return offset;
+ }
+
+ /// Indicates whether the current Index object is equal to another object of the same type.
+ /// An object to compare with this object
+ public override bool Equals([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? value) => value is global::System.Index && _value == ((global::System.Index)value)._value;
+
+ /// Indicates whether the current Index object is equal to another Index object.
+ /// An object to compare with this object
+ public bool Equals(global::System.Index other) => _value == other._value;
+
+ /// Returns the hash code for this instance.
+ public override int GetHashCode() => _value;
+
+ /// Converts integer number to an Index.
+ public static implicit operator global::System.Index(int value) => FromStart(value);
+
+ /// Converts the value of the current Index object to its equivalent string representation.
+ public override string ToString()
+ {
+ if (IsFromEnd)
+ return ToStringFromEnd();
+
+ return ((uint)Value).ToString();
+ }
+
+ private string ToStringFromEnd()
+ {
+ return '^' + Value.ToString();
+ }
+
+ private static class ThrowHelper
+ {
+ [global::System.Diagnostics.CodeAnalysis.DoesNotReturn]
+ public static void ThrowValueArgumentOutOfRange_NeedNonNegNumException()
+ {
+ throw new global::System.ArgumentOutOfRangeException("value", "Non-negative number required.");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs
new file mode 100644
index 0000000..c887825
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Range.g.cs
@@ -0,0 +1,119 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System
+{
+ /// Represent a range has start and end indexes.
+ ///
+ /// Range is used by the C# compiler to support the range syntax.
+ ///
+ /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
+ /// int[] subArray1 = someArray[0..2]; // { 1, 2 }
+ /// int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
+ ///
+ ///
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal readonly struct Range : global::System.IEquatable
+ {
+ /// Represent the inclusive start index of the Range.
+ public global::System.Index Start { get; }
+
+ /// Represent the exclusive end index of the Range.
+ public global::System.Index End { get; }
+
+ /// Construct a Range object using the start and end indexes.
+ /// Represent the inclusive start index of the range.
+ /// Represent the exclusive end index of the range.
+ public Range(global::System.Index start, global::System.Index end)
+ {
+ Start = start;
+ End = end;
+ }
+
+ /// Indicates whether the current Range object is equal to another object of the same type.
+ /// An object to compare with this object
+ public override bool Equals([global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? value) =>
+ value is global::System.Range r &&
+ r.Start.Equals(Start) &&
+ r.End.Equals(End);
+
+ /// Indicates whether the current Range object is equal to another Range object.
+ /// An object to compare with this object
+ public bool Equals(global::System.Range other) => other.Start.Equals(Start) && other.End.Equals(End);
+
+ /// Returns the hash code for this instance.
+ public override int GetHashCode()
+ {
+ return global::System.Range.HashHelpers.Combine(Start.GetHashCode(), End.GetHashCode());
+ }
+
+ /// Converts the value of the current Range object to its equivalent string representation.
+ public override string ToString()
+ {
+ return Start.ToString() + ".." + End.ToString();
+ }
+
+ /// Create a Range object starting from start index to the end of the collection.
+ public static global::System.Range StartAt(global::System.Index start) => new global::System.Range(start, global::System.Index.End);
+
+ /// Create a Range object starting from first element in the collection to the end Index.
+ public static global::System.Range EndAt(global::System.Index end) => new global::System.Range(global::System.Index.Start, end);
+
+ /// Create a Range object starting from first element to the end.
+ public static global::System.Range All => new global::System.Range(global::System.Index.Start, global::System.Index.End);
+
+ /// Calculate the start offset and length of range object using a collection length.
+ /// The length of the collection that the range will be used with. length has to be a positive value.
+ ///
+ /// For performance reason, we don't validate the input length parameter against negative values.
+ /// It is expected Range will be used with collections which always have non negative length/count.
+ /// We validate the range is inside the length scope though.
+ ///
+ [global::System.Runtime.CompilerServices.MethodImpl(global::System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
+ public (int Offset, int Length) GetOffsetAndLength(int length)
+ {
+ int start;
+ global::System.Index startIndex = Start;
+ if (startIndex.IsFromEnd)
+ start = length - startIndex.Value;
+ else
+ start = startIndex.Value;
+
+ int end;
+ global::System.Index endIndex = End;
+ if (endIndex.IsFromEnd)
+ end = length - endIndex.Value;
+ else
+ end = endIndex.Value;
+
+ if ((uint)end > (uint)length || (uint)start > (uint)end)
+ {
+ global::System.Range.ThrowHelper.ThrowArgumentOutOfRangeException();
+ }
+
+ return (start, end - start);
+ }
+
+ private static class HashHelpers
+ {
+ public static int Combine(int h1, int h2)
+ {
+ uint rol5 = ((uint)h1 << 5) | ((uint)h1 >> 27);
+ return ((int)rol5 + h1) ^ h2;
+ }
+ }
+
+ private static class ThrowHelper
+ {
+ [global::System.Diagnostics.CodeAnalysis.DoesNotReturn]
+ public static void ThrowArgumentOutOfRangeException()
+ {
+ throw new global::System.ArgumentOutOfRangeException("length");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs
new file mode 100644
index 0000000..da3e4a2
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CallerArgumentExpressionAttribute.g.cs
@@ -0,0 +1,31 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// An attribute that allows parameters to receive the expression of other parameters.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CallerArgumentExpressionAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The condition parameter value.
+ public CallerArgumentExpressionAttribute(string parameterName)
+ {
+ ParameterName = parameterName;
+ }
+
+ ///
+ /// Gets the parameter name the expression is retrieved from.
+ ///
+ public string ParameterName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs
new file mode 100644
index 0000000..784248e
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs
@@ -0,0 +1,48 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Interface,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CollectionBuilderAttribute : Attribute
+ {
+ ///
+ /// Initialize the attribute to refer to the method on the type.
+ ///
+ /// The type of the builder to use to construct the collection.
+ /// The name of the method on the builder to use to construct the collection.
+ ///
+ /// must refer to a static method that accepts a single parameter of
+ /// type and returns an instance of the collection being built containing
+ /// a copy of the data from that span. In future releases of .NET, additional patterns may be supported.
+ ///
+ public CollectionBuilderAttribute(Type builderType, string methodName)
+ {
+ BuilderType = builderType;
+ MethodName = methodName;
+ }
+
+ ///
+ /// Gets the type of the builder to use to construct the collection.
+ ///
+ public Type BuilderType { get; }
+
+ ///
+ /// Gets the name of the method on the builder to use to construct the collection.
+ ///
+ ///
+ /// This should match the metadata name of the target method.
+ /// For example, this might be ".ctor" if targeting the type's constructor.
+ ///
+ public string MethodName { get; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs
new file mode 100644
index 0000000..0a4425c
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.g.cs
@@ -0,0 +1,46 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates that compiler support for a particular feature is required for the location where this attribute is applied.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.All, AllowMultiple = true, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class CompilerFeatureRequiredAttribute : global::System.Attribute
+ {
+ ///
+ /// Creates a new instance of the type.
+ ///
+ /// The name of the feature to indicate.
+ public CompilerFeatureRequiredAttribute(string featureName)
+ {
+ FeatureName = featureName;
+ }
+
+ ///
+ /// The name of the compiler feature.
+ ///
+ public string FeatureName { get; }
+
+ ///
+ /// If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
+ ///
+ public bool IsOptional { get; set; }
+
+ ///
+ /// The used for the ref structs C# feature.
+ ///
+ public const string RefStructs = nameof(RefStructs);
+
+ ///
+ /// The used for the required members C# feature.
+ ///
+ public const string RequiredMembers = nameof(RequiredMembers);
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs
new file mode 100644
index 0000000..c613d13
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute.g.cs
@@ -0,0 +1,43 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class InterpolatedStringHandlerArgumentAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The name of the argument that should be passed to the handler.
+ /// may be used as the name of the receiver in an instance method.
+ public InterpolatedStringHandlerArgumentAttribute(string argument)
+ {
+ Arguments = new string[] { argument };
+ }
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The names of the arguments that should be passed to the handler.
+ /// may be used as the name of the receiver in an instance method.
+ public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
+ {
+ Arguments = arguments;
+ }
+
+ ///
+ /// Gets the names of the arguments that should be passed to the handler.
+ ///
+ /// may be used as the name of the receiver in an instance method.
+ public string[] Arguments { get; }
+ }
+}
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs
new file mode 100644
index 0000000..a78ec8f
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.InterpolatedStringHandlerAttribute.g.cs
@@ -0,0 +1,21 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Indicates the attributed type is to be used as an interpolated string handler.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct,
+ AllowMultiple = false, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class InterpolatedStringHandlerAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs
new file mode 100644
index 0000000..8a7c8f6
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.IsExternalInit.g.cs
@@ -0,0 +1,19 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Reserved to be used by the compiler for tracking metadata.
+ /// This class should not be used by developers in source code.
+ ///
+ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal static class IsExternalInit
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs
new file mode 100644
index 0000000..17486e1
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.ModuleInitializerAttribute.g.cs
@@ -0,0 +1,35 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Used to indicate to the compiler that a method should be called
+ /// in its containing module's initializer.
+ ///
+ ///
+ /// When one or more valid methods
+ /// with this attribute are found in a compilation, the compiler will
+ /// emit a module initializer which calls each of the attributed methods.
+ ///
+ /// Certain requirements are imposed on any method targeted with this attribute:
+ /// - The method must be `static`.
+ /// - The method must be an ordinary member method, as opposed to a property accessor, constructor, local function, etc.
+ /// - The method must be parameterless.
+ /// - The method must return `void`.
+ /// - The method must not be generic or be contained in a generic type.
+ /// - The method's effective accessibility must be `internal` or `public`.
+ ///
+ /// The specification for module initializers in the .NET runtime can be found here:
+ /// https://github.com/dotnet/runtime/blob/main/docs/design/specs/Ecma-335-Augments.md#module-initializer
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Method, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class ModuleInitializerAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs
new file mode 100644
index 0000000..030c468
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiredMemberAttribute.g.cs
@@ -0,0 +1,24 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Specifies that a type has required members or that a member is required.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Field |
+ global::System.AttributeTargets.Property,
+ AllowMultiple = false,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class RequiredMemberAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs
new file mode 100644
index 0000000..0bca5e9
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.RequiresLocationAttribute.g.cs
@@ -0,0 +1,20 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Reserved for use by a compiler for tracking metadata.
+ /// This attribute should not be used by developers in source code.
+ ///
+ [global::System.AttributeUsage(global::System.AttributeTargets.Parameter, Inherited = false)]
+ [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class RequiresLocationAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs
new file mode 100644
index 0000000..106b8b1
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.CompilerServices.SkipLocalsInitAttribute.g.cs
@@ -0,0 +1,27 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ ///
+ /// Used to indicate to the compiler that the .locals init flag should not be set in method headers.
+ ///
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Event,
+ Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class SkipLocalsInitAttribute : global::System.Attribute
+ {
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs
new file mode 100644
index 0000000..e268078
--- /dev/null
+++ b/src/libs/Ollama/Generated/PolySharp.SourceGenerators/PolySharp.SourceGenerators.PolyfillsGenerator/System.Runtime.Versioning.RequiresPreviewFeaturesAttribute.g.cs
@@ -0,0 +1,52 @@
+//
+#pragma warning disable
+#nullable enable annotations
+
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.Versioning
+{
+ [global::System.AttributeUsage(
+ global::System.AttributeTargets.Assembly |
+ global::System.AttributeTargets.Module |
+ global::System.AttributeTargets.Class |
+ global::System.AttributeTargets.Interface |
+ global::System.AttributeTargets.Delegate |
+ global::System.AttributeTargets.Struct |
+ global::System.AttributeTargets.Enum |
+ global::System.AttributeTargets.Constructor |
+ global::System.AttributeTargets.Method |
+ global::System.AttributeTargets.Property |
+ global::System.AttributeTargets.Field |
+ AttributeTargets.Event, Inherited = false)]
+ [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
+ internal sealed class RequiresPreviewFeaturesAttribute : global::System.Attribute
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RequiresPreviewFeaturesAttribute()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the class with the specified message.
+ ///
+ /// An optional message associated with this attribute instance.
+ public RequiresPreviewFeaturesAttribute(string? message)
+ {
+ Message = message;
+ }
+
+ ///
+ /// Returns the optional message associated with this attribute instance.
+ ///
+ public string? Message { get; }
+
+ ///
+ /// Returns the optional URL associated with this attribute instance.
+ ///
+ public string? Url { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/libs/Ollama/Generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SourceGenerationContext.AnyOfStringNullableCreateModelResponseStatus.g.cs b/src/libs/Ollama/Generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SourceGenerationContext.AnyOfStringNullableCreateModelResponseStatus.g.cs
new file mode 100644
index 0000000..ae08b9e
--- /dev/null
+++ b/src/libs/Ollama/Generated/System.Text.Json.SourceGeneration/System.Text.Json.SourceGeneration.JsonSourceGenerator/SourceGenerationContext.AnyOfStringNullableCreateModelResponseStatus.g.cs
@@ -0,0 +1,146 @@
+//
+
+#nullable enable annotations
+#nullable disable warnings
+
+// Suppress warnings about [Obsolete] member usage in generated code.
+#pragma warning disable CS0612, CS0618
+
+namespace Ollama
+{
+ internal sealed partial class SourceGenerationContext
+ {
+ private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>? _AnyOfStringNullableCreateModelResponseStatus;
+
+ ///
+ /// Defines the source generated JSON serialization contract metadata for a given type.
+ ///
+ public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> AnyOfStringNullableCreateModelResponseStatus
+ {
+ get => _AnyOfStringNullableCreateModelResponseStatus ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>)Options.GetTypeInfo(typeof(global::System.AnyOf));
+ }
+
+ private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> Create_AnyOfStringNullableCreateModelResponseStatus(global::System.Text.Json.JsonSerializerOptions options)
+ {
+ if (!TryGetTypeInfoForRuntimeCustomConverter>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> jsonTypeInfo))
+ {
+ var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues>
+ {
+ ObjectCreator = () => new global::System.AnyOf(),
+ ObjectWithParameterizedConstructorCreator = null,
+ PropertyMetadataInitializer = _ => AnyOfStringNullableCreateModelResponseStatusPropInit(options),
+ ConstructorParameterMetadataInitializer = null,
+ SerializeHandler = null
+ };
+
+ jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo>(options, objectInfo);
+ jsonTypeInfo.NumberHandling = null;
+ }
+
+ jsonTypeInfo.OriginatingResolver = this;
+ return jsonTypeInfo;
+ }
+
+ private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] AnyOfStringNullableCreateModelResponseStatusPropInit(global::System.Text.Json.JsonSerializerOptions options)
+ {
+ var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[5];
+
+ var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues
+ {
+ IsProperty = true,
+ IsPublic = true,
+ IsVirtual = false,
+ DeclaringType = typeof(global::System.AnyOf),
+ Converter = null,
+ Getter = static obj => ((global::System.AnyOf)obj).Value1,
+ Setter = null,
+ IgnoreCondition = null,
+ HasJsonInclude = false,
+ IsExtensionData = false,
+ NumberHandling = null,
+ PropertyName = "Value1",
+ JsonPropertyName = null
+ };
+
+ properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo(options, info0);
+
+ var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues
+ {
+ IsProperty = true,
+ IsPublic = true,
+ IsVirtual = false,
+ DeclaringType = typeof(global::System.AnyOf),
+ Converter = null,
+ Getter = static obj => ((global::System.AnyOf)obj).IsValue1,
+ Setter = null,
+ IgnoreCondition = null,
+ HasJsonInclude = false,
+ IsExtensionData = false,
+ NumberHandling = null,
+ PropertyName = "IsValue1",
+ JsonPropertyName = null
+ };
+
+ properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo(options, info1);
+
+ var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues
+ {
+ IsProperty = true,
+ IsPublic = true,
+ IsVirtual = false,
+ DeclaringType = typeof(global::System.AnyOf),
+ Converter = null,
+ Getter = static obj => ((global::System.AnyOf)obj).Value2,
+ Setter = null,
+ IgnoreCondition = null,
+ HasJsonInclude = false,
+ IsExtensionData = false,
+ NumberHandling = null,
+ PropertyName = "Value2",
+ JsonPropertyName = null
+ };
+
+ properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo(options, info2);
+
+ var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues
+ {
+ IsProperty = true,
+ IsPublic = true,
+ IsVirtual = false,
+ DeclaringType = typeof(global::System.AnyOf),
+ Converter = null,
+ Getter = static obj => ((global::System.AnyOf)obj).IsValue2,
+ Setter = null,
+ IgnoreCondition = null,
+ HasJsonInclude = false,
+ IsExtensionData = false,
+ NumberHandling = null,
+ PropertyName = "IsValue2",
+ JsonPropertyName = null
+ };
+
+ properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo(options, info3);
+
+ var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues