Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public sealed partial class LibraryListingMetadataV1
[global::System.Text.Json.Serialization.JsonPropertyName("trending")]
public bool? Trending { get; set; }

/// <summary>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("model_family")]
public string? ModelFamily { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down Expand Up @@ -115,6 +121,9 @@ public sealed partial class LibraryListingMetadataV1
/// <param name="trending">
/// Default Value: false
/// </param>
/// <param name="modelFamily">
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
Expand All @@ -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;
Expand All @@ -142,6 +152,7 @@ public LibraryListingMetadataV1(
this.ReleaseDate = releaseDate;
this.Description = description;
this.Trending = trending;
this.ModelFamily = modelFamily;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ namespace Baseten
/// - ``MEBIBYTES``: a size in mebibytes (MiB).<br/>
/// - ``COUNT``: a dimensionless tally of discrete things.<br/>
/// - ``RATIO``: a dimensionless ratio. Usually in ``[0, 1]`` but may exceed 1<br/>
/// (e.g. CPU usage in cores = cpu-seconds/second).
/// (e.g. CPU usage in cores = cpu-seconds/second).<br/>
/// - ``CELSIUS``: a temperature in degrees Celsius.<br/>
/// - ``WATTS``: power draw in watts.
/// </summary>
public enum ModelMetricUnitHintV1
{
Expand All @@ -21,6 +23,10 @@ public enum ModelMetricUnitHintV1
/// </summary>
Bytes,
/// <summary>
/// a temperature in degrees Celsius.
/// </summary>
Celsius,
/// <summary>
/// a dimensionless tally of discrete things.
/// </summary>
Count,
Expand All @@ -40,6 +46,10 @@ public enum ModelMetricUnitHintV1
/// a duration in seconds.
/// </summary>
Seconds,
/// <summary>
/// power draw in watts.
/// </summary>
Watts,
}

/// <summary>
Expand All @@ -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),
};
}
Expand All @@ -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,
};
}
Expand Down
18 changes: 16 additions & 2 deletions src/libs/Baseten/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -31802,6 +31804,18 @@
"default": false,
"title": "Trending",
"type": "boolean"
},
"model_family": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Model Family"
}
},
"required": [
Expand Down
Loading