llmprovider

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package llmprovider constructs cogito LLM transports from nib configuration.

Index

Constants

View Source
const (
	ProviderOpenAI = "openai"
	ProviderCodex  = "codex"
)

Variables

This section is empty.

Functions

func IsCodex

func IsCodex(config types.ModelProviderConfig) bool

func New

func New(config types.ModelProviderConfig) (cogito.LLM, error)

New returns an independent LLM transport. OpenAI means any OpenAI-compatible HTTP endpoint, including a local LocalAI server.

func NewWithTemperature

func NewWithTemperature(config types.ModelProviderConfig, temperature float32) (cogito.LLM, error)

NewWithTemperature applies agent-specific sampling to OpenAI-compatible providers. Codex app-server owns its reasoning configuration and ignores the compatibility hint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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