Versions in this module Expand all Collapse all v1 v1.0.3-preview.2 Jun 27, 2026 v1.0.3-preview Jun 24, 2026 v1.0.2 Jun 22, 2026 v1.0.1 Jun 20, 2026 v1.0.0 Jun 19, 2026 Changes in this version + var ChannelName = "volcengine" + var ModelList = []string + func FullClientRequest(conn *websocket.Conn, payload []byte) error + type Adaptor struct + func (a *Adaptor) ConvertAudioRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.AudioRequest) (io.Reader, error) + func (a *Adaptor) ConvertClaudeRequest(c *gin.Context, info *relaycommon.RelayInfo, req *dto.ClaudeRequest) (any, error) + func (a *Adaptor) ConvertEmbeddingRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.EmbeddingRequest) (any, error) + func (a *Adaptor) ConvertGeminiRequest(*gin.Context, *relaycommon.RelayInfo, *dto.GeminiChatRequest) (any, error) + func (a *Adaptor) ConvertImageRequest(c *gin.Context, info *relaycommon.RelayInfo, request dto.ImageRequest) (any, error) + func (a *Adaptor) ConvertOpenAIRequest(c *gin.Context, info *relaycommon.RelayInfo, request *dto.GeneralOpenAIRequest) (any, error) + func (a *Adaptor) ConvertOpenAIResponsesRequest(c *gin.Context, info *relaycommon.RelayInfo, ...) (any, error) + func (a *Adaptor) ConvertRerankRequest(c *gin.Context, relayMode int, request dto.RerankRequest) (any, error) + func (a *Adaptor) DoRequest(c *gin.Context, info *relaycommon.RelayInfo, requestBody io.Reader) (any, error) + func (a *Adaptor) DoResponse(c *gin.Context, resp *http.Response, info *relaycommon.RelayInfo) (usage any, err *types.MaxAPIError) + func (a *Adaptor) GetChannelName() string + func (a *Adaptor) GetModelList() []string + func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) + func (a *Adaptor) Init(info *relaycommon.RelayInfo) + func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Header, info *relaycommon.RelayInfo) error + type CompressionBits uint8 + const CompressionNone + type EventType int32 + const EventType_ASREnded + const EventType_ASRInfo + const EventType_ASRResponse + const EventType_AudioMuted + const EventType_CancelSession + const EventType_ChatEnded + const EventType_ChatResponse + const EventType_ChatTTSText + const EventType_ConnectionFailed + const EventType_ConnectionFinished + const EventType_ConnectionStarted + const EventType_FinishConnection + const EventType_FinishSession + const EventType_None + const EventType_PodcastRoundEnd + const EventType_PodcastRoundResponse + const EventType_PodcastRoundStart + const EventType_SayHello + const EventType_SessionCanceled + const EventType_SessionFailed + const EventType_SessionFinished + const EventType_SessionStarted + const EventType_SourceSubtitleEnd + const EventType_SourceSubtitleResponse + const EventType_SourceSubtitleStart + const EventType_StartConnection + const EventType_StartSession + const EventType_TTSEnded + const EventType_TTSResponse + const EventType_TTSSentenceEnd + const EventType_TTSSentenceStart + const EventType_TaskRequest + const EventType_TranslationSubtitleEnd + const EventType_TranslationSubtitleResponse + const EventType_TranslationSubtitleStart + const EventType_UpdateConfig + const EventType_UsageResponse + func (t EventType) String() string + type HeaderSizeBits uint8 + const HeaderSize4 + type Message struct + Compression CompressionBits + ConnectID string + ErrorCode uint32 + EventType EventType + HeaderSize HeaderSizeBits + MsgType MsgType + MsgTypeFlag MsgTypeFlagBits + Payload []byte + Sequence int32 + Serialization SerializationBits + SessionID string + Version VersionBits + func NewMessage(msgType MsgType, flag MsgTypeFlagBits) (*Message, error) + func NewMessageFromBytes(data []byte) (*Message, error) + func ReceiveMessage(conn *websocket.Conn) (*Message, error) + func (m *Message) Marshal() ([]byte, error) + func (m *Message) String() string + func (m *Message) Unmarshal(data []byte) error + type MsgType uint8 + const MsgTypeAudioOnlyClient + const MsgTypeAudioOnlyServer + const MsgTypeError + const MsgTypeFrontEndResultServer + const MsgTypeFullClientRequest + const MsgTypeFullServerResponse + func (t MsgType) String() string + type MsgTypeFlagBits uint8 + const MsgTypeFlagNegativeSeq + const MsgTypeFlagNoSeq + const MsgTypeFlagPositiveSeq + const MsgTypeFlagWithEvent + type SerializationBits uint8 + const SerializationJSON + type VersionBits uint8 + const Version1 + type VolcengineTTSAdditionInfo struct + Duration string + type VolcengineTTSApp struct + AppID string + Cluster string + Token string + type VolcengineTTSAudio struct + Bitrate int + ContextLanguage string + Emotion string + EmotionScale float64 + EnableEmotion bool + Encoding string + ExplicitLanguage string + LoudnessRatio float64 + Rate int + SpeedRatio float64 + VoiceType string + type VolcengineTTSCacheConfig struct + TextType int + UseCache bool + type VolcengineTTSExtraParam struct + AigcWatermark bool + CacheConfig *VolcengineTTSCacheConfig + DisableEmojiFilter bool + DisableMarkdownFilter bool + EnableLatexTn bool + MuteCutRemainMs string + MuteCutThreshold string + UnsupportedCharRatioThresh float64 + type VolcengineTTSReqInfo struct + ExtraParam *VolcengineTTSExtraParam + Model string + Operation string + ReqID string + SilenceDuration float64 + Text string + TextType string + WithTimestamp interface{} + type VolcengineTTSRequest struct + App VolcengineTTSApp + Audio VolcengineTTSAudio + Request VolcengineTTSReqInfo + User VolcengineTTSUser + type VolcengineTTSResponse struct + Addition *VolcengineTTSAdditionInfo + Code int + Data string + Message string + ReqID string + Sequence int + type VolcengineTTSUser struct + UID string