ratefilltest

package
v0.7.14 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ratefilltest holds what the per-caller price fixture tests share (issue #856): the model list and the check against testdata/ratefill_before.json. Test code only.

Index

Constants

This section is empty.

Variables

View Source
var Models = []string{
	"claude-opus-5-5",
	"claude-sonnet-5-5",
	"claude-fable-5-1",
	"claude-mythos-5-1",
	"claude-opus-5",
	"claude-sonnet-5",
	"claude-fable-5",
	"claude-mythos-5",
	"claude-haiku-5-5",
	"claude-haiku-4-5",
	"claude-opus-4-8",
	"claude-sonnet-4-5",
	"claude-opus-5-20261101",
	"claude-opus-5-50",
	"claude-opus-5-1",
	"claude-fable-5-5",
	"claude-opus-5.5",
	"Claude-Sonnet-5-5",
	"claude-opus-5-5[1m]",
	"aws/claude-opus-5-5",
	"aws/claude-sonnet-5",
	"aws/claude-fable-5-1",
	"us.anthropic.claude-mythos-5-1-v1:0",
	"anthropic.claude-sonnet-5-5-v1:0",
	"azure/gpt-5.5",
	"azure/gpt-5.6-luna",
	"gemini-3-flash-preview",
	"gcp/gemini-2.5-pro",
	"premium",
	"",
}

Models is the set every caller is priced for, before and after the cache-rate refactor (issue #856): every tier on the pricing page, the prefix traps, a non-Anthropic id, a tier name and an empty model.

Functions

func Check

func Check(t *testing.T, got map[string]string)

Check compares got with the fixture. RATEFILL_UPDATE=1 rewrites the fixture; that is how the "before" values were made, on origin/main c2a06dd5, before any code changed. The four table/*/claude-sonnet-5 rows were re-made by #334 (a bare id takes its qualified entry).

func F

func F(vs ...float64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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