base

package
v1.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchEmbeddingResult added in v1.9.16

type BatchEmbeddingResult struct {
	Embeddings  [][]float64
	InputTokens int64
	TotalTokens int64
	Cost        float64
}

BatchEmbeddingResult contains multiple embeddings and usage information

type Config

type Config struct {
	ModelConfig  latest.ModelConfig
	ModelOptions options.ModelOptions
	Env          environment.Provider
}

Config is a common base configuration shared by all provider clients. It can be embedded in provider-specific Client structs to avoid code duplication.

func (*Config) BaseConfig added in v1.9.7

func (c *Config) BaseConfig() Config

func (*Config) ID

func (c *Config) ID() string

ID returns the provider and model ID in the format "provider/model"

type EmbeddingResult added in v1.9.16

type EmbeddingResult struct {
	Embedding   []float64
	InputTokens int64
	TotalTokens int64
	Cost        float64
}

EmbeddingResult contains the embedding and usage information

Jump to

Keyboard shortcuts

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