providers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelGPT4o                    = "gpt-4o"      // $0.15 / 1M
	ModelGPT4oMini                = "gpt-4o-mini" // $0.15 / 1M
	ModelGPT4oNano                = "gpt-4o-nano" // $0.15 / 1M
	ModelGPTo4Mini                = "o4-mini"     // 10x gpt-4o-mini
	ModelGPTo3Mini                = "o3-mini"     // 10x gpt-4o-mini
	ModelGPT4_1                   = "gpt-4.1"     // $2
	ModelGPT4_1_Mini              = "gpt-4.1-mini"
	ModelGPTo3                    = "o3"                // $2
	ModelClaude3_7Sonnet          = "claude-3-7-sonnet" // $3
	ModelClaude3_7Sonnet_20250219 = "claude-3-7-sonnet@20250219"
	ModelClaudeSonnet4            = "claude-sonnet-4" // $3
	ModelClaudeSonnet4_20250514   = "claude-sonnet-4@20250514"
	ModelDeepSeekR1               = "DeepSeek-R1"
	ModelQwen25VL72BInstruct      = "Qwen2.5-VL-72B-Instruct"
)

Variables

Functions

This section is empty.

Types

type ModelCost

type ModelCost struct {
	InputUSDPer1M           string
	InputCacheWriteUSDPer1M string
	InputCacheReadUSDPer1M  string
	OutputUSDPer1M          string
}

func GetModelCost

func GetModelCost(model string) (ModelCost, bool)

type Provider

type Provider string
const (
	ProviderOpenAI    Provider = "openai"
	ProviderAnthropic Provider = "anthropic"
	ProviderGemini    Provider = "gemini"
)

func GetModelProvider

func GetModelProvider(model string) (Provider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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