controller

package
v0.0.0-...-af8a321 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImageSizePrice

func GetImageSizePrice(modelConfig *model.ModelConfig, size string) (float64, bool)

func GetModelPrice

func GetModelPrice(modelConfig *model.ModelConfig) (float64, float64, bool)

func Handle

func Handle(meta *meta.Meta, c *gin.Context, preProcess func() (*PreCheckGroupBalanceReq, error)) *relaymodel.ErrorWithStatusCode

func RelayImageHelper

func RelayImageHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode

func RelaySTTHelper

func RelaySTTHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode

func RelayTTSHelper

func RelayTTSHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode

func RelayTextHelper

func RelayTextHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode

func RerankHelper

func RerankHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode

Types

type PreCheckGroupBalanceReq

type PreCheckGroupBalanceReq struct {
	InputTokens int
	MaxTokens   int
	InputPrice  float64
	OutputPrice float64
}

Jump to

Keyboard shortcuts

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