Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelResponse ¶
type ModelResponse struct {
ID ids.ModelID `json:"id"`
ProviderID ids.ProviderID `json:"provider_id"`
Slug string `json:"slug"`
ExternalID string `json:"external_id,omitempty"`
DisplayName string `json:"display_name,omitempty"`
ContextWindow int `json:"context_window,omitempty"`
MaxOutput int `json:"max_output,omitempty"`
InputPrice string `json:"input_price,omitempty"`
OutputPrice string `json:"output_price,omitempty"`
Capabilities map[string]any `json:"capabilities,omitempty"`
Enabled bool `json:"enabled"`
Source string `json:"source"`
// ReleaseDate is the provider release date ("YYYY-MM-DD"); empty when unknown.
// Models are returned most-recent release first.
ReleaseDate string `json:"release_date,omitempty"`
// InputModalities and OutputModalities list the accepted/produced content
// types (e.g. "text", "image", "audio").
InputModalities []string `json:"input_modalities,omitempty"`
OutputModalities []string `json:"output_modalities,omitempty"`
}
func FromModel ¶
func FromModel(m domain.Model) ModelResponse
type ProviderResponse ¶
type ProviderResponse struct {
ID ids.ProviderID `json:"id"`
Code string `json:"code"`
DisplayName string `json:"display_name"`
WireFormat string `json:"wire_format"`
Source string `json:"source"`
Metadata map[string]any `json:"metadata,omitempty"`
AuthTypes []appcatalog.AuthTypeOption `json:"auth_types"`
ProviderOptionsSchema []appcatalog.ProviderOptionField `json:"provider_options_schema"`
}
func FromProvider ¶
func FromProvider(p domain.Provider) ProviderResponse
Click to show internal directories.
Click to hide internal directories.