optconv

package
v0.2.65 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemperaturePtr

func TemperaturePtr(opts *llm.Options) *float64

TemperaturePtr returns a pointer to Temperature value that should be sent to provider. Rules: 1. If opts == nil -> nil 2. If model id starts with "o4-" -> nil (model accepts only default) 3. If Temperature == 1 (default) -> nil 4. Otherwise returns pointer to opts.Temperature (valid even for 0)

Types

This section is empty.

Jump to

Keyboard shortcuts

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