modelgen

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEffortThinkingLevelMap

func GetEffortThinkingLevelMap(options []ModelsDevReasoningOption) map[string]*string

GetEffortThinkingLevelMap exposes only verified efforts, preserving explicit null for unavailable levels. Toggle, budget, default and null values imply no selectable effort.

func GetOpenRouterThinkingLevelMap

func GetOpenRouterThinkingLevelMap(reasoning *OpenRouterReasoningMetadata) map[string]*string

GetOpenRouterThinkingLevelMap converts vendor capabilities without inferring a request effort from the vendor default.

Types

type ModelsDevReasoningOption

type ModelsDevReasoningOption struct {
	Type   string    `json:"type"`
	Values []*string `json:"values,omitempty"`
	Min    *float64  `json:"min,omitempty"`
	Max    *float64  `json:"max,omitempty"`
}

ModelsDevReasoningOption describes a raw models.dev reasoning control.

type OpenRouterReasoningMetadata

type OpenRouterReasoningMetadata struct {
	Mandatory        bool      `json:"mandatory,omitempty"`
	DefaultEnabled   bool      `json:"default_enabled,omitempty"`
	SupportedEfforts []*string `json:"supported_efforts,omitempty"`
	DefaultEffort    *string   `json:"default_effort,omitempty"`
}

OpenRouterReasoningMetadata is the vendor's reasoning control metadata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL