metricopenaichatcompletiontokenusage

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the metricopenaichatcompletiontokenusage type in the database.
	Label = "metric_open_ai_chat_completion_token_usage"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPromptOperation holds the string denoting the prompt_operation field in the database.
	FieldPromptOperation = "prompt_operation"
	// FieldPromptCharacterLength holds the string denoting the prompt_character_length field in the database.
	FieldPromptCharacterLength = "prompt_character_length"
	// FieldPromptTokenUsage holds the string denoting the prompt_token_usage field in the database.
	FieldPromptTokenUsage = "prompt_token_usage"
	// FieldCompletionCharacterLength holds the string denoting the completion_character_length field in the database.
	FieldCompletionCharacterLength = "completion_character_length"
	// FieldCompletionTokenUsage holds the string denoting the completion_token_usage field in the database.
	FieldCompletionTokenUsage = "completion_token_usage"
	// FieldTotalTokenUsage holds the string denoting the total_token_usage field in the database.
	FieldTotalTokenUsage = "total_token_usage"
	// FieldModelName holds the string denoting the model_name field in the database.
	FieldModelName = "model_name"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the metricopenaichatcompletiontokenusage in the database.
	Table = "metric_open_ai_chat_completion_token_usages"
)

Variables

View Source
var (
	// DefaultPromptOperation holds the default value on creation for the "prompt_operation" field.
	DefaultPromptOperation string
	// DefaultPromptCharacterLength holds the default value on creation for the "prompt_character_length" field.
	DefaultPromptCharacterLength int
	// DefaultPromptTokenUsage holds the default value on creation for the "prompt_token_usage" field.
	DefaultPromptTokenUsage int
	// DefaultCompletionCharacterLength holds the default value on creation for the "completion_character_length" field.
	DefaultCompletionCharacterLength int
	// DefaultCompletionTokenUsage holds the default value on creation for the "completion_token_usage" field.
	DefaultCompletionTokenUsage int
	// DefaultTotalTokenUsage holds the default value on creation for the "total_token_usage" field.
	DefaultTotalTokenUsage int
	// DefaultModelName holds the default value on creation for the "model_name" field.
	DefaultModelName string
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() int64
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for metricopenaichatcompletiontokenusage fields.

Functions

func And

And groups predicates with the AND operator between them.

func CompletionCharacterLength

func CompletionCharacterLength(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLength applies equality check predicate on the "completion_character_length" field. It's identical to CompletionCharacterLengthEQ.

func CompletionCharacterLengthEQ

func CompletionCharacterLengthEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthEQ applies the EQ predicate on the "completion_character_length" field.

func CompletionCharacterLengthGT

func CompletionCharacterLengthGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthGT applies the GT predicate on the "completion_character_length" field.

func CompletionCharacterLengthGTE

func CompletionCharacterLengthGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthGTE applies the GTE predicate on the "completion_character_length" field.

func CompletionCharacterLengthIn

func CompletionCharacterLengthIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthIn applies the In predicate on the "completion_character_length" field.

func CompletionCharacterLengthLT

func CompletionCharacterLengthLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthLT applies the LT predicate on the "completion_character_length" field.

func CompletionCharacterLengthLTE

func CompletionCharacterLengthLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthLTE applies the LTE predicate on the "completion_character_length" field.

func CompletionCharacterLengthNEQ

func CompletionCharacterLengthNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthNEQ applies the NEQ predicate on the "completion_character_length" field.

func CompletionCharacterLengthNotIn

func CompletionCharacterLengthNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionCharacterLengthNotIn applies the NotIn predicate on the "completion_character_length" field.

func CompletionTokenUsage

func CompletionTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsage applies equality check predicate on the "completion_token_usage" field. It's identical to CompletionTokenUsageEQ.

func CompletionTokenUsageEQ

func CompletionTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageEQ applies the EQ predicate on the "completion_token_usage" field.

func CompletionTokenUsageGT

func CompletionTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageGT applies the GT predicate on the "completion_token_usage" field.

func CompletionTokenUsageGTE

func CompletionTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageGTE applies the GTE predicate on the "completion_token_usage" field.

func CompletionTokenUsageIn

func CompletionTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageIn applies the In predicate on the "completion_token_usage" field.

func CompletionTokenUsageLT

func CompletionTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageLT applies the LT predicate on the "completion_token_usage" field.

func CompletionTokenUsageLTE

func CompletionTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageLTE applies the LTE predicate on the "completion_token_usage" field.

func CompletionTokenUsageNEQ

func CompletionTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageNEQ applies the NEQ predicate on the "completion_token_usage" field.

func CompletionTokenUsageNotIn

func CompletionTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

CompletionTokenUsageNotIn applies the NotIn predicate on the "completion_token_usage" field.

func CreatedAt

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func ModelName added in v0.18.0

ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.

func ModelNameContains added in v0.18.0

ModelNameContains applies the Contains predicate on the "model_name" field.

func ModelNameContainsFold added in v0.18.0

func ModelNameContainsFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage

ModelNameContainsFold applies the ContainsFold predicate on the "model_name" field.

func ModelNameEQ added in v0.18.0

ModelNameEQ applies the EQ predicate on the "model_name" field.

func ModelNameEqualFold added in v0.18.0

ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.

func ModelNameGT added in v0.18.0

ModelNameGT applies the GT predicate on the "model_name" field.

func ModelNameGTE added in v0.18.0

ModelNameGTE applies the GTE predicate on the "model_name" field.

func ModelNameHasPrefix added in v0.18.0

ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.

func ModelNameHasSuffix added in v0.18.0

ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.

func ModelNameIn added in v0.18.0

ModelNameIn applies the In predicate on the "model_name" field.

func ModelNameLT added in v0.18.0

ModelNameLT applies the LT predicate on the "model_name" field.

func ModelNameLTE added in v0.18.0

ModelNameLTE applies the LTE predicate on the "model_name" field.

func ModelNameNEQ added in v0.18.0

ModelNameNEQ applies the NEQ predicate on the "model_name" field.

func ModelNameNotIn added in v0.18.0

ModelNameNotIn applies the NotIn predicate on the "model_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PromptCharacterLength

func PromptCharacterLength(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLength applies equality check predicate on the "prompt_character_length" field. It's identical to PromptCharacterLengthEQ.

func PromptCharacterLengthEQ

func PromptCharacterLengthEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthEQ applies the EQ predicate on the "prompt_character_length" field.

func PromptCharacterLengthGT

func PromptCharacterLengthGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthGT applies the GT predicate on the "prompt_character_length" field.

func PromptCharacterLengthGTE

func PromptCharacterLengthGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthGTE applies the GTE predicate on the "prompt_character_length" field.

func PromptCharacterLengthIn

func PromptCharacterLengthIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthIn applies the In predicate on the "prompt_character_length" field.

func PromptCharacterLengthLT

func PromptCharacterLengthLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthLT applies the LT predicate on the "prompt_character_length" field.

func PromptCharacterLengthLTE

func PromptCharacterLengthLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthLTE applies the LTE predicate on the "prompt_character_length" field.

func PromptCharacterLengthNEQ

func PromptCharacterLengthNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthNEQ applies the NEQ predicate on the "prompt_character_length" field.

func PromptCharacterLengthNotIn

func PromptCharacterLengthNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptCharacterLengthNotIn applies the NotIn predicate on the "prompt_character_length" field.

func PromptOperation

PromptOperation applies equality check predicate on the "prompt_operation" field. It's identical to PromptOperationEQ.

func PromptOperationContains

func PromptOperationContains(v string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationContains applies the Contains predicate on the "prompt_operation" field.

func PromptOperationContainsFold

func PromptOperationContainsFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationContainsFold applies the ContainsFold predicate on the "prompt_operation" field.

func PromptOperationEQ

PromptOperationEQ applies the EQ predicate on the "prompt_operation" field.

func PromptOperationEqualFold

func PromptOperationEqualFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationEqualFold applies the EqualFold predicate on the "prompt_operation" field.

func PromptOperationGT

PromptOperationGT applies the GT predicate on the "prompt_operation" field.

func PromptOperationGTE

PromptOperationGTE applies the GTE predicate on the "prompt_operation" field.

func PromptOperationHasPrefix

func PromptOperationHasPrefix(v string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationHasPrefix applies the HasPrefix predicate on the "prompt_operation" field.

func PromptOperationHasSuffix

func PromptOperationHasSuffix(v string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationHasSuffix applies the HasSuffix predicate on the "prompt_operation" field.

func PromptOperationIn

func PromptOperationIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationIn applies the In predicate on the "prompt_operation" field.

func PromptOperationLT

PromptOperationLT applies the LT predicate on the "prompt_operation" field.

func PromptOperationLTE

PromptOperationLTE applies the LTE predicate on the "prompt_operation" field.

func PromptOperationNEQ

PromptOperationNEQ applies the NEQ predicate on the "prompt_operation" field.

func PromptOperationNotIn

func PromptOperationNotIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage

PromptOperationNotIn applies the NotIn predicate on the "prompt_operation" field.

func PromptTokenUsage

PromptTokenUsage applies equality check predicate on the "prompt_token_usage" field. It's identical to PromptTokenUsageEQ.

func PromptTokenUsageEQ

PromptTokenUsageEQ applies the EQ predicate on the "prompt_token_usage" field.

func PromptTokenUsageGT

PromptTokenUsageGT applies the GT predicate on the "prompt_token_usage" field.

func PromptTokenUsageGTE

func PromptTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptTokenUsageGTE applies the GTE predicate on the "prompt_token_usage" field.

func PromptTokenUsageIn

func PromptTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptTokenUsageIn applies the In predicate on the "prompt_token_usage" field.

func PromptTokenUsageLT

PromptTokenUsageLT applies the LT predicate on the "prompt_token_usage" field.

func PromptTokenUsageLTE

func PromptTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptTokenUsageLTE applies the LTE predicate on the "prompt_token_usage" field.

func PromptTokenUsageNEQ

func PromptTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptTokenUsageNEQ applies the NEQ predicate on the "prompt_token_usage" field.

func PromptTokenUsageNotIn

func PromptTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

PromptTokenUsageNotIn applies the NotIn predicate on the "prompt_token_usage" field.

func TotalTokenUsage

TotalTokenUsage applies equality check predicate on the "total_token_usage" field. It's identical to TotalTokenUsageEQ.

func TotalTokenUsageEQ

TotalTokenUsageEQ applies the EQ predicate on the "total_token_usage" field.

func TotalTokenUsageGT

TotalTokenUsageGT applies the GT predicate on the "total_token_usage" field.

func TotalTokenUsageGTE

TotalTokenUsageGTE applies the GTE predicate on the "total_token_usage" field.

func TotalTokenUsageIn

func TotalTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

TotalTokenUsageIn applies the In predicate on the "total_token_usage" field.

func TotalTokenUsageLT

TotalTokenUsageLT applies the LT predicate on the "total_token_usage" field.

func TotalTokenUsageLTE

TotalTokenUsageLTE applies the LTE predicate on the "total_token_usage" field.

func TotalTokenUsageNEQ

TotalTokenUsageNEQ applies the NEQ predicate on the "total_token_usage" field.

func TotalTokenUsageNotIn

func TotalTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage

TotalTokenUsageNotIn applies the NotIn predicate on the "total_token_usage" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MetricOpenAIChatCompletionTokenUsage queries.

func ByCompletionCharacterLength

func ByCompletionCharacterLength(opts ...sql.OrderTermOption) OrderOption

ByCompletionCharacterLength orders the results by the completion_character_length field.

func ByCompletionTokenUsage

func ByCompletionTokenUsage(opts ...sql.OrderTermOption) OrderOption

ByCompletionTokenUsage orders the results by the completion_token_usage field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByModelName added in v0.18.0

func ByModelName(opts ...sql.OrderTermOption) OrderOption

ByModelName orders the results by the model_name field.

func ByPromptCharacterLength

func ByPromptCharacterLength(opts ...sql.OrderTermOption) OrderOption

ByPromptCharacterLength orders the results by the prompt_character_length field.

func ByPromptOperation

func ByPromptOperation(opts ...sql.OrderTermOption) OrderOption

ByPromptOperation orders the results by the prompt_operation field.

func ByPromptTokenUsage

func ByPromptTokenUsage(opts ...sql.OrderTermOption) OrderOption

ByPromptTokenUsage orders the results by the prompt_token_usage field.

func ByTotalTokenUsage

func ByTotalTokenUsage(opts ...sql.OrderTermOption) OrderOption

ByTotalTokenUsage orders the results by the total_token_usage field.

Jump to

Keyboard shortcuts

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