fix: add json tags to AdminModelRow (was serializing as PascalCase)
This commit is contained in:
@@ -9,19 +9,19 @@ import (
|
||||
// AdminModelRow is a catalog entry for the admin view (includes blocked /
|
||||
// unavailable rows, with both discovered and override pricing).
|
||||
type AdminModelRow struct {
|
||||
ID uuid.UUID
|
||||
ProviderName string
|
||||
Slug string
|
||||
DisplayName string
|
||||
Source string
|
||||
Available bool
|
||||
Enabled bool
|
||||
Blocked bool
|
||||
ContextLength *int
|
||||
DiscInputPerMTok *float64
|
||||
DiscOutputPerMTok *float64
|
||||
PriceInputPerMTok *float64
|
||||
PriceOutputPerMTok *float64
|
||||
ID uuid.UUID `json:"id"`
|
||||
ProviderName string `json:"provider_name"`
|
||||
Slug string `json:"slug"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Source string `json:"source"`
|
||||
Available bool `json:"available"`
|
||||
Enabled bool `json:"enabled"`
|
||||
Blocked bool `json:"blocked"`
|
||||
ContextLength *int `json:"context_length"`
|
||||
DiscInputPerMTok *float64 `json:"disc_input_per_mtok"`
|
||||
DiscOutputPerMTok *float64 `json:"disc_output_per_mtok"`
|
||||
PriceInputPerMTok *float64 `json:"price_input_per_mtok"`
|
||||
PriceOutputPerMTok *float64 `json:"price_output_per_mtok"`
|
||||
}
|
||||
|
||||
// ListModelsAdmin lists every catalog entry (no servability filter) for admin.
|
||||
|
||||
Reference in New Issue
Block a user