config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config loads optional user overrides for prompt-diff, such as negotiated or non-USD model pricing that the built-in price list can't know about.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// PriceOverrides maps model name -> USD price per 1M input tokens,
	// overriding internal/cost's built-in list.
	PriceOverrides map[string]float64 `yaml:"price_overrides"`
}

File is the parsed shape of .prompt-diff.yml.

func Load

func Load() (*File, error)

Load reads .prompt-diff.yml (or .yaml) from the current directory first, falling back to the same filename in the user's home directory. Returns a zero-value File, no error, when neither exists.

Jump to

Keyboard shortcuts

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