From c3e1669ec6394d2be9774ecff8aefcf10d1809ff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 16 Oct 2026 23:23:39 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...aseten.Models.LibraryListingMetadataV1.g.cs | 13 ++++++++++++- .../Baseten.Models.ModelMetricUnitHintV1.g.cs | 16 +++++++++++++++- src/libs/Baseten/openapi.yaml | 18 ++++++++++++++++-- 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/src/libs/Baseten/Generated/Baseten.Models.LibraryListingMetadataV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.LibraryListingMetadataV1.g.cs index ded7ffd5..0b249b6c 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.LibraryListingMetadataV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.LibraryListingMetadataV1.g.cs @@ -75,6 +75,12 @@ public sealed partial class LibraryListingMetadataV1 [global::System.Text.Json.Serialization.JsonPropertyName("trending")] public bool? Trending { get; set; } + /// + /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_family")] + public string? ModelFamily { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -115,6 +121,9 @@ public sealed partial class LibraryListingMetadataV1 /// /// Default Value: false /// + /// + /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -129,7 +138,8 @@ public LibraryListingMetadataV1( string? modelApiSlug, global::System.DateTime? releaseDate, string? description, - bool? trending) + bool? trending, + string? modelFamily) { this.ParameterCount = parameterCount; this.ContextLength = contextLength; @@ -142,6 +152,7 @@ public LibraryListingMetadataV1( this.ReleaseDate = releaseDate; this.Description = description; this.Trending = trending; + this.ModelFamily = modelFamily; } /// diff --git a/src/libs/Baseten/Generated/Baseten.Models.ModelMetricUnitHintV1.g.cs b/src/libs/Baseten/Generated/Baseten.Models.ModelMetricUnitHintV1.g.cs index 3830f264..05bd33ba 100644 --- a/src/libs/Baseten/Generated/Baseten.Models.ModelMetricUnitHintV1.g.cs +++ b/src/libs/Baseten/Generated/Baseten.Models.ModelMetricUnitHintV1.g.cs @@ -12,7 +12,9 @@ namespace Baseten /// - ``MEBIBYTES``: a size in mebibytes (MiB).
/// - ``COUNT``: a dimensionless tally of discrete things.
/// - ``RATIO``: a dimensionless ratio. Usually in ``[0, 1]`` but may exceed 1
- /// (e.g. CPU usage in cores = cpu-seconds/second). + /// (e.g. CPU usage in cores = cpu-seconds/second).
+ /// - ``CELSIUS``: a temperature in degrees Celsius.
+ /// - ``WATTS``: power draw in watts. ///
public enum ModelMetricUnitHintV1 { @@ -21,6 +23,10 @@ public enum ModelMetricUnitHintV1 /// Bytes, /// + /// a temperature in degrees Celsius. + /// + Celsius, + /// /// a dimensionless tally of discrete things. /// Count, @@ -40,6 +46,10 @@ public enum ModelMetricUnitHintV1 /// a duration in seconds. /// Seconds, + /// + /// power draw in watts. + /// + Watts, } /// @@ -55,11 +65,13 @@ public static string ToValueString(this ModelMetricUnitHintV1 value) return value switch { ModelMetricUnitHintV1.Bytes => "BYTES", + ModelMetricUnitHintV1.Celsius => "CELSIUS", ModelMetricUnitHintV1.Count => "COUNT", ModelMetricUnitHintV1.Mebibytes => "MEBIBYTES", ModelMetricUnitHintV1.PerSecond => "PER_SECOND", ModelMetricUnitHintV1.Ratio => "RATIO", ModelMetricUnitHintV1.Seconds => "SECONDS", + ModelMetricUnitHintV1.Watts => "WATTS", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -71,11 +83,13 @@ public static string ToValueString(this ModelMetricUnitHintV1 value) return value switch { "BYTES" => ModelMetricUnitHintV1.Bytes, + "CELSIUS" => ModelMetricUnitHintV1.Celsius, "COUNT" => ModelMetricUnitHintV1.Count, "MEBIBYTES" => ModelMetricUnitHintV1.Mebibytes, "PER_SECOND" => ModelMetricUnitHintV1.PerSecond, "RATIO" => ModelMetricUnitHintV1.Ratio, "SECONDS" => ModelMetricUnitHintV1.Seconds, + "WATTS" => ModelMetricUnitHintV1.Watts, _ => null, }; } diff --git a/src/libs/Baseten/openapi.yaml b/src/libs/Baseten/openapi.yaml index 65e62896..3fe32851 100644 --- a/src/libs/Baseten/openapi.yaml +++ b/src/libs/Baseten/openapi.yaml @@ -21690,14 +21690,16 @@ "type": "string" }, "ModelMetricUnitHintV1": { - "description": "Advisory unit of a metric's values. Values are reported as scraped, so the\nhint describes the raw value (e.g. GPU memory is reported in mebibytes).\n\n- ``PER_SECOND``: a rate per second.\n- ``SECONDS``: a duration in seconds.\n- ``BYTES``: a size in bytes.\n- ``MEBIBYTES``: a size in mebibytes (MiB).\n- ``COUNT``: a dimensionless tally of discrete things.\n- ``RATIO``: a dimensionless ratio. Usually in ``[0, 1]`` but may exceed 1\n (e.g. CPU usage in cores = cpu-seconds/second).", + "description": "Advisory unit of a metric's values. Values are reported as scraped, so the\nhint describes the raw value (e.g. GPU memory is reported in mebibytes).\n\n- ``PER_SECOND``: a rate per second.\n- ``SECONDS``: a duration in seconds.\n- ``BYTES``: a size in bytes.\n- ``MEBIBYTES``: a size in mebibytes (MiB).\n- ``COUNT``: a dimensionless tally of discrete things.\n- ``RATIO``: a dimensionless ratio. Usually in ``[0, 1]`` but may exceed 1\n (e.g. CPU usage in cores = cpu-seconds/second).\n- ``CELSIUS``: a temperature in degrees Celsius.\n- ``WATTS``: power draw in watts.", "enum": [ "PER_SECOND", "SECONDS", "BYTES", "MEBIBYTES", "COUNT", - "RATIO" + "RATIO", + "CELSIUS", + "WATTS" ], "title": "ModelMetricUnitHintV1", "type": "string" @@ -31802,6 +31804,18 @@ "default": false, "title": "Trending", "type": "boolean" + }, + "model_family": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Model Family" } }, "required": [