attribution

package
v0.82.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSDKStreamHeaders

func BuildSDKStreamHeaders(
	model llm.Model,
	installTelemetryEnabled bool,
	providerHeaders map[string]string,
	requestHeaders map[string]string,
) map[string]string

func GetAttributionHeaders

func GetAttributionHeaders(model llm.Model, installTelemetryEnabled bool) map[string]string

func MergeProviderHeaders added in v0.82.0

func MergeProviderHeaders(
	model llm.Model,
	context Context,
	headerSources ...map[string]string,
) map[string]string

Types

type Context added in v0.82.0

type Context struct {
	InstallTelemetryEnabled bool
	SessionID               string
}

Context is the immutable application state needed to derive provider attribution for one request.

Jump to

Keyboard shortcuts

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