llm

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TableLlmUsages = "llm_usages"

Variables

This section is empty.

Functions

func SaveLlmUsage

func SaveLlmUsage(ctx context.Context, tx *daos.Dao, usage *LlmUsages) error

Types

type LlmUsages

type LlmUsages struct {
	dtoutils.BaseModel
	ApiKey     string `json:"api_key,omitempty" mapstructure:"api_key,omitempty"`
	TokenUsage int64  `json:"token_usage,omitempty" mapstructure:"token_usage,omitempty"`
	UserId     string `json:"user_id,omitempty" mapstructure:"user_id,omitempty"`
	Model      string `json:"model,omitempty" mapstructure:"model,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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