Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeChat = "chat" TypeImageWS = "image_ws" TypeImageLite = "image_lite" TypeImageEdit = "image_edit" TypeVideo = "video" )
Internal runtime type constants.
View Source
const ( PoolBasic = "basic" PoolSuper = "super" PoolHeavy = "heavy" )
Pool floor constants.
View Source
const ( QuotaAuto = "auto" QuotaFast = "fast" QuotaExpert = "expert" QuotaHeavy = "heavy" )
Quota mode constants.
Variables ¶
View Source
var EmbeddedFS embed.FS
Functions ¶
func DerivePublicType ¶
DerivePublicType maps an internal runtime type to its public API type.
Types ¶
type ModelSpec ¶
type ModelSpec struct {
ID string `toml:"id"`
DisplayName string `toml:"display_name"`
Type string `toml:"type"` // internal runtime type
Enabled bool `toml:"enabled"`
PoolFloor string `toml:"pool_floor"`
QuotaMode string `toml:"quota_mode"`
UpstreamModel string `toml:"upstream_model,omitempty"`
UpstreamMode string `toml:"upstream_mode,omitempty"`
ForceThinking bool `toml:"force_thinking,omitempty"`
EnablePro bool `toml:"enable_pro,omitempty"`
PublicType string `toml:"-"` // derived at load time, not serialized
}
ModelSpec represents a single model entry in the static catalog.
Click to show internal directories.
Click to hide internal directories.