Versions in this module Expand all Collapse all v1 v1.0.1 Sep 19, 2026 Changes in this version + const CtxKeyFirstTokenTime v1.0.0 Jul 6, 2026 Changes in this version + const CtxKeyRequestBody + const CtxKeyRequestHeader + const CtxKeyResponseBody + var CtxKeyPreConsumedQuota = "pre_consumed_quota" + func MaskAuthorizationHeader(headers http.Header) string + func RelayAudioHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode + func RelayErrorHandler(resp *http.Response) (ErrorWithStatusCode *model.ErrorWithStatusCode) + func RelayImageHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode + func RelayProxyHelper(c *gin.Context, relayMode int) *relaymodel.ErrorWithStatusCode + func RelayResponsesHelper(c *gin.Context) *model.ErrorWithStatusCode + func RelayTextHelper(c *gin.Context) *model.ErrorWithStatusCode + type GeneralErrorResponse struct + Err string + Error model.Error + ErrorMsg string + Header struct{ ... } + Message string + Msg string + Response struct{ ... } + func (e GeneralErrorResponse) ToMessage() string