Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLength(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionCharacterLengthNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CompletionTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAt(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtEQ(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtGT(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtGTE(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtIn(vs ...int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtLT(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtLTE(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtNEQ(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func CreatedAtNotIn(vs ...int64) predicate.MetricOpenAIChatCompletionTokenUsage
- func ID(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDEQ(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDGT(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDGTE(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDIn(ids ...uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDLT(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDLTE(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDNEQ(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func IDNotIn(ids ...uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelName(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameContains(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameContainsFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameEqualFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameGT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameGTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameHasPrefix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameHasSuffix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameLT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameLTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameNEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func ModelNameNotIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
- func Not(p predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
- func Or(predicates ...predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLength(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptCharacterLengthNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperation(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationContains(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationContainsFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationEqualFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationGT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationGTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationHasPrefix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationHasSuffix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationLT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationLTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationNEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptOperationNotIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func PromptTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
- func TotalTokenUsageNotIn(vs ...int) predicate.MetricOpenAIChatCompletionTokenUsage
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompletionCharacterLength(opts ...sql.OrderTermOption) OrderOption
- func ByCompletionTokenUsage(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModelName(opts ...sql.OrderTermOption) OrderOption
- func ByPromptCharacterLength(opts ...sql.OrderTermOption) OrderOption
- func ByPromptOperation(opts ...sql.OrderTermOption) OrderOption
- func ByPromptTokenUsage(opts ...sql.OrderTermOption) OrderOption
- func ByTotalTokenUsage(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldPromptOperation, FieldPromptCharacterLength, FieldPromptTokenUsage, FieldCompletionCharacterLength, FieldCompletionTokenUsage, FieldTotalTokenUsage, FieldModelName, FieldCreatedAt, }
Columns holds all SQL columns for metricopenaichatcompletiontokenusage fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func CreatedAt(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...int64) predicate.MetricOpenAIChatCompletionTokenUsage
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ID ¶
func ID(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.MetricOpenAIChatCompletionTokenUsage
IDNotIn applies the NotIn predicate on the ID field.
func ModelName ¶ added in v0.18.0
func ModelName(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.
func ModelNameContains ¶ added in v0.18.0
func ModelNameContains(v string) predicate.MetricOpenAIChatCompletionTokenUsage
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
func ModelNameEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameEQ applies the EQ predicate on the "model_name" field.
func ModelNameEqualFold ¶ added in v0.18.0
func ModelNameEqualFold(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.
func ModelNameGT ¶ added in v0.18.0
func ModelNameGT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameGT applies the GT predicate on the "model_name" field.
func ModelNameGTE ¶ added in v0.18.0
func ModelNameGTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameGTE applies the GTE predicate on the "model_name" field.
func ModelNameHasPrefix ¶ added in v0.18.0
func ModelNameHasPrefix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.
func ModelNameHasSuffix ¶ added in v0.18.0
func ModelNameHasSuffix(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.
func ModelNameIn ¶ added in v0.18.0
func ModelNameIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameIn applies the In predicate on the "model_name" field.
func ModelNameLT ¶ added in v0.18.0
func ModelNameLT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameLT applies the LT predicate on the "model_name" field.
func ModelNameLTE ¶ added in v0.18.0
func ModelNameLTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameLTE applies the LTE predicate on the "model_name" field.
func ModelNameNEQ ¶ added in v0.18.0
func ModelNameNEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameNEQ applies the NEQ predicate on the "model_name" field.
func ModelNameNotIn ¶ added in v0.18.0
func ModelNameNotIn(vs ...string) predicate.MetricOpenAIChatCompletionTokenUsage
ModelNameNotIn applies the NotIn predicate on the "model_name" field.
func Not ¶
func Not(p predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MetricOpenAIChatCompletionTokenUsage) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptOperation(v string) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptOperationEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptOperationGT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
PromptOperationGT applies the GT predicate on the "prompt_operation" field.
func PromptOperationGTE ¶
func PromptOperationGTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptOperationLT(v string) predicate.MetricOpenAIChatCompletionTokenUsage
PromptOperationLT applies the LT predicate on the "prompt_operation" field.
func PromptOperationLTE ¶
func PromptOperationLTE(v string) predicate.MetricOpenAIChatCompletionTokenUsage
PromptOperationLTE applies the LTE predicate on the "prompt_operation" field.
func PromptOperationNEQ ¶
func PromptOperationNEQ(v string) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage
PromptTokenUsage applies equality check predicate on the "prompt_token_usage" field. It's identical to PromptTokenUsageEQ.
func PromptTokenUsageEQ ¶
func PromptTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
PromptTokenUsageEQ applies the EQ predicate on the "prompt_token_usage" field.
func PromptTokenUsageGT ¶
func PromptTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func PromptTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func TotalTokenUsage(v int) predicate.MetricOpenAIChatCompletionTokenUsage
TotalTokenUsage applies equality check predicate on the "total_token_usage" field. It's identical to TotalTokenUsageEQ.
func TotalTokenUsageEQ ¶
func TotalTokenUsageEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
TotalTokenUsageEQ applies the EQ predicate on the "total_token_usage" field.
func TotalTokenUsageGT ¶
func TotalTokenUsageGT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
TotalTokenUsageGT applies the GT predicate on the "total_token_usage" field.
func TotalTokenUsageGTE ¶
func TotalTokenUsageGTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
func TotalTokenUsageLT(v int) predicate.MetricOpenAIChatCompletionTokenUsage
TotalTokenUsageLT applies the LT predicate on the "total_token_usage" field.
func TotalTokenUsageLTE ¶
func TotalTokenUsageLTE(v int) predicate.MetricOpenAIChatCompletionTokenUsage
TotalTokenUsageLTE applies the LTE predicate on the "total_token_usage" field.
func TotalTokenUsageNEQ ¶
func TotalTokenUsageNEQ(v int) predicate.MetricOpenAIChatCompletionTokenUsage
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.