Documentation
¶
Index ¶
- func DoHelper(a adaptor.Adaptor, c *gin.Context, meta *meta.Meta) (*relaymodel.Usage, *model.RequestDetail, *relaymodel.ErrorWithStatusCode)
- func GetImageSizePrice(modelConfig *model.ModelConfig, size string) (float64, bool)
- func GetModelPrice(modelConfig *model.ModelConfig) (float64, float64, bool)
- func Handle(meta *meta.Meta, c *gin.Context, ...) *relaymodel.ErrorWithStatusCode
- func RelayImageHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode
- func RelaySTTHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode
- func RelayTTSHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode
- func RelayTextHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode
- func RerankHelper(meta *meta.Meta, c *gin.Context) *relaymodel.ErrorWithStatusCode
- type PreCheckGroupBalanceReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHelper ¶
func DoHelper( a adaptor.Adaptor, c *gin.Context, meta *meta.Meta, ) ( *relaymodel.Usage, *model.RequestDetail, *relaymodel.ErrorWithStatusCode, )
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 ¶
Click to show internal directories.
Click to hide internal directories.