deepinfra

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeepinfraPerMillionTokenCost = map[string]map[string]float64{
	"prompt": {
		"baai/bge-large-en-v1.5":                              0.01,
		"baai/bge-base-en-v1.5":                               0.005,
		"intfloat/e5-base-v2":                                 0.005,
		"intfloat/e5-large-v2":                                0.01,
		"sentence-transformers/all-minilm-l12-v2":             0.005,
		"sentence-transformers/all-minilm-l6-v2":              0.005,
		"sentence-transformers/all-mpnet-base-v2":             0.005,
		"sentence-transformers/clip-vit-b-32":                 0.005,
		"sentence-transformers/clip-vit-b-32-multilingual-v1": 0.005,
		"sentence-transformers/multi-qa-mpnet-base-dot-v1":    0.005,
		"sentence-transformers/paraphrase-minilm-l6-v2":       0.005,
		"shibing624/text2vec-base-chinese":                    0.005,
		"thenlper/gte-base":                                   0.005,
		"thenlper/gte-large":                                  0.01,
	},
}

Functions

This section is empty.

Types

type CostEstimator

type CostEstimator struct {
	// contains filtered or unexported fields
}

func NewCostEstimator

func NewCostEstimator() *CostEstimator

func (*CostEstimator) EstimateEmbeddingsInputCost

func (ce *CostEstimator) EstimateEmbeddingsInputCost(model string, tks int) (float64, error)

Jump to

Keyboard shortcuts

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