openrouterfx

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidConfig is returned when the OpenRouter configuration is invalid.
	ErrInvalidConfig = errors.New("invalid config")
)

Functions

func Module

func Module() fx.Option

func New

func New(config Config) (*openrouter.Client, error)

Types

type Config

type Config struct {
	Token string

	AppName string
	AppURL  string
}

Config holds the OpenRouter client configuration. Token is the OpenRouter API key (required). AppName and AppURL are optional metadata sent with requests.

Jump to

Keyboard shortcuts

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