|
| 1 | +// <auto-generated/> |
| 2 | + |
| 3 | +#nullable disable |
| 4 | + |
| 5 | +using System; |
| 6 | +using System.ComponentModel; |
| 7 | +using OpenAI; |
| 8 | + |
| 9 | +namespace OpenAI.Assistants |
| 10 | +{ |
| 11 | + internal readonly partial struct InternalCreateThreadAndRunRequestModel : IEquatable<InternalCreateThreadAndRunRequestModel> |
| 12 | + { |
| 13 | + private readonly string _value; |
| 14 | + private const string Gpt41Value = "gpt-4.1"; |
| 15 | + private const string Gpt41MiniValue = "gpt-4.1-mini"; |
| 16 | + private const string Gpt41NanoValue = "gpt-4.1-nano"; |
| 17 | + private const string Gpt4120250414Value = "gpt-4.1-2025-04-14"; |
| 18 | + private const string Gpt41Mini20250414Value = "gpt-4.1-mini-2025-04-14"; |
| 19 | + private const string Gpt41Nano20250414Value = "gpt-4.1-nano-2025-04-14"; |
| 20 | + private const string Gpt4oValue = "gpt-4o"; |
| 21 | + private const string Gpt4o20241120Value = "gpt-4o-2024-11-20"; |
| 22 | + private const string Gpt4o20240806Value = "gpt-4o-2024-08-06"; |
| 23 | + private const string Gpt4o20240513Value = "gpt-4o-2024-05-13"; |
| 24 | + private const string Gpt4oMiniValue = "gpt-4o-mini"; |
| 25 | + private const string Gpt4oMini20240718Value = "gpt-4o-mini-2024-07-18"; |
| 26 | + private const string Gpt45PreviewValue = "gpt-4.5-preview"; |
| 27 | + private const string Gpt45Preview20250227Value = "gpt-4.5-preview-2025-02-27"; |
| 28 | + private const string Gpt4TurboValue = "gpt-4-turbo"; |
| 29 | + private const string Gpt4Turbo20240409Value = "gpt-4-turbo-2024-04-09"; |
| 30 | + private const string Gpt40125PreviewValue = "gpt-4-0125-preview"; |
| 31 | + private const string Gpt4TurboPreviewValue = "gpt-4-turbo-preview"; |
| 32 | + private const string Gpt41106PreviewValue = "gpt-4-1106-preview"; |
| 33 | + private const string Gpt4VisionPreviewValue = "gpt-4-vision-preview"; |
| 34 | + private const string Gpt4Value = "gpt-4"; |
| 35 | + private const string Gpt40314Value = "gpt-4-0314"; |
| 36 | + private const string Gpt40613Value = "gpt-4-0613"; |
| 37 | + private const string Gpt432kValue = "gpt-4-32k"; |
| 38 | + private const string Gpt432k0314Value = "gpt-4-32k-0314"; |
| 39 | + private const string Gpt432k0613Value = "gpt-4-32k-0613"; |
| 40 | + private const string Gpt35TurboValue = "gpt-3.5-turbo"; |
| 41 | + private const string Gpt35Turbo16kValue = "gpt-3.5-turbo-16k"; |
| 42 | + private const string Gpt35Turbo0613Value = "gpt-3.5-turbo-0613"; |
| 43 | + private const string Gpt35Turbo1106Value = "gpt-3.5-turbo-1106"; |
| 44 | + private const string Gpt35Turbo0125Value = "gpt-3.5-turbo-0125"; |
| 45 | + private const string Gpt35Turbo16k0613Value = "gpt-3.5-turbo-16k-0613"; |
| 46 | + |
| 47 | + public InternalCreateThreadAndRunRequestModel(string value) |
| 48 | + { |
| 49 | + Argument.AssertNotNull(value, nameof(value)); |
| 50 | + |
| 51 | + _value = value; |
| 52 | + } |
| 53 | + |
| 54 | + internal static InternalCreateThreadAndRunRequestModel Gpt41 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41Value); |
| 55 | + |
| 56 | + internal static InternalCreateThreadAndRunRequestModel Gpt41Mini { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41MiniValue); |
| 57 | + |
| 58 | + internal static InternalCreateThreadAndRunRequestModel Gpt41Nano { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41NanoValue); |
| 59 | + |
| 60 | + internal static InternalCreateThreadAndRunRequestModel Gpt4120250414 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4120250414Value); |
| 61 | + |
| 62 | + internal static InternalCreateThreadAndRunRequestModel Gpt41Mini20250414 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41Mini20250414Value); |
| 63 | + |
| 64 | + internal static InternalCreateThreadAndRunRequestModel Gpt41Nano20250414 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41Nano20250414Value); |
| 65 | + |
| 66 | + internal static InternalCreateThreadAndRunRequestModel Gpt4o { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4oValue); |
| 67 | + |
| 68 | + internal static InternalCreateThreadAndRunRequestModel Gpt4o20241120 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4o20241120Value); |
| 69 | + |
| 70 | + internal static InternalCreateThreadAndRunRequestModel Gpt4o20240806 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4o20240806Value); |
| 71 | + |
| 72 | + internal static InternalCreateThreadAndRunRequestModel Gpt4o20240513 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4o20240513Value); |
| 73 | + |
| 74 | + internal static InternalCreateThreadAndRunRequestModel Gpt4oMini { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4oMiniValue); |
| 75 | + |
| 76 | + internal static InternalCreateThreadAndRunRequestModel Gpt4oMini20240718 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4oMini20240718Value); |
| 77 | + |
| 78 | + internal static InternalCreateThreadAndRunRequestModel Gpt45Preview { get; } = new InternalCreateThreadAndRunRequestModel(Gpt45PreviewValue); |
| 79 | + |
| 80 | + internal static InternalCreateThreadAndRunRequestModel Gpt45Preview20250227 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt45Preview20250227Value); |
| 81 | + |
| 82 | + internal static InternalCreateThreadAndRunRequestModel Gpt4Turbo { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4TurboValue); |
| 83 | + |
| 84 | + internal static InternalCreateThreadAndRunRequestModel Gpt4Turbo20240409 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4Turbo20240409Value); |
| 85 | + |
| 86 | + internal static InternalCreateThreadAndRunRequestModel Gpt40125Preview { get; } = new InternalCreateThreadAndRunRequestModel(Gpt40125PreviewValue); |
| 87 | + |
| 88 | + internal static InternalCreateThreadAndRunRequestModel Gpt4TurboPreview { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4TurboPreviewValue); |
| 89 | + |
| 90 | + internal static InternalCreateThreadAndRunRequestModel Gpt41106Preview { get; } = new InternalCreateThreadAndRunRequestModel(Gpt41106PreviewValue); |
| 91 | + |
| 92 | + internal static InternalCreateThreadAndRunRequestModel Gpt4VisionPreview { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4VisionPreviewValue); |
| 93 | + |
| 94 | + internal static InternalCreateThreadAndRunRequestModel Gpt4 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt4Value); |
| 95 | + |
| 96 | + internal static InternalCreateThreadAndRunRequestModel Gpt40314 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt40314Value); |
| 97 | + |
| 98 | + internal static InternalCreateThreadAndRunRequestModel Gpt40613 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt40613Value); |
| 99 | + |
| 100 | + internal static InternalCreateThreadAndRunRequestModel Gpt432k { get; } = new InternalCreateThreadAndRunRequestModel(Gpt432kValue); |
| 101 | + |
| 102 | + internal static InternalCreateThreadAndRunRequestModel Gpt432k0314 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt432k0314Value); |
| 103 | + |
| 104 | + internal static InternalCreateThreadAndRunRequestModel Gpt432k0613 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt432k0613Value); |
| 105 | + |
| 106 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35TurboValue); |
| 107 | + |
| 108 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo16k { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35Turbo16kValue); |
| 109 | + |
| 110 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo0613 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35Turbo0613Value); |
| 111 | + |
| 112 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo1106 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35Turbo1106Value); |
| 113 | + |
| 114 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo0125 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35Turbo0125Value); |
| 115 | + |
| 116 | + internal static InternalCreateThreadAndRunRequestModel Gpt35Turbo16k0613 { get; } = new InternalCreateThreadAndRunRequestModel(Gpt35Turbo16k0613Value); |
| 117 | + |
| 118 | + public static bool operator ==(InternalCreateThreadAndRunRequestModel left, InternalCreateThreadAndRunRequestModel right) => left.Equals(right); |
| 119 | + |
| 120 | + public static bool operator !=(InternalCreateThreadAndRunRequestModel left, InternalCreateThreadAndRunRequestModel right) => !left.Equals(right); |
| 121 | + |
| 122 | + public static implicit operator InternalCreateThreadAndRunRequestModel(string value) => new InternalCreateThreadAndRunRequestModel(value); |
| 123 | + |
| 124 | + public static implicit operator InternalCreateThreadAndRunRequestModel?(string value) => value == null ? null : new InternalCreateThreadAndRunRequestModel(value); |
| 125 | + |
| 126 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 127 | + public override bool Equals(object obj) => obj is InternalCreateThreadAndRunRequestModel other && Equals(other); |
| 128 | + |
| 129 | + public bool Equals(InternalCreateThreadAndRunRequestModel other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); |
| 130 | + |
| 131 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 132 | + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; |
| 133 | + |
| 134 | + public override string ToString() => _value; |
| 135 | + } |
| 136 | +} |
0 commit comments