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 + const AdvancedCustomAuthTypeHeader + const AdvancedCustomAuthTypeNone + const AdvancedCustomAuthTypeQuery + const AdvancedCustomConverterAnthropicMessagesToOpenAIChatCompletions + const AdvancedCustomConverterGeminiGenerateContentToOpenAIChatCompletions + const AdvancedCustomConverterNone + const AdvancedCustomConverterOpenAIChatCompletionsToAnthropicMessages + const AdvancedCustomConverterOpenAIChatCompletionsToGeminiGenerateContent + const AdvancedCustomConverterOpenAIChatCompletionsToOpenAIResponses + const BuildInCallWebSearchCall + const BuildInToolFileSearch + const BuildInToolWebSearchPreview + const ContentTypeFile + const ContentTypeImageURL + const ContentTypeInputAudio + const ContentTypeText + const ContentTypeVideoUrl + const ContentValueParam + const CustomType + const NotifyTypeChannelTest + const NotifyTypeChannelUpdate + const NotifyTypeQuotaExceed + const RealtimeEventConversationItemCreated + const RealtimeEventInputAudioBufferAppend + const RealtimeEventResponseAudioDelta + const RealtimeEventResponseAudioTranscriptionDelta + const RealtimeEventResponseFunctionCallArgumentsDelta + const RealtimeEventResponseFunctionCallArgumentsDone + const RealtimeEventTypeConversationCreate + const RealtimeEventTypeError + const RealtimeEventTypeResponseCreate + const RealtimeEventTypeResponseDone + const RealtimeEventTypeSessionCreated + const RealtimeEventTypeSessionUpdate + const RealtimeEventTypeSessionUpdated + const ResponsesOutputTypeImageGenerationCall + const ResponsesOutputTypeItemAdded + const ResponsesOutputTypeItemDone + const TaskSuccessCode + const VideoStatusCompleted + const VideoStatusFailed + const VideoStatusInProgress + const VideoStatusQueued + const VideoStatusUnknown + var NotifyTypeBark = "bark" + var NotifyTypeEmail = "email" + var NotifyTypeGotify = "gotify" + var NotifyTypeWebhook = "webhook" + func GetJSONFieldNames(t reflect.Type) map[string]struct + func GetOpenAIError(errorField any) *types.OpenAIError + func IsAdvancedCustomConverterAllowed(converter string) bool + func IsOpenAIGPT5Model(modelName string) bool + func IsOpenAIReasoningOModel(modelName string) bool + func ProcessTools(tools []any) ([]*Tool, []*ClaudeWebSearchTool) + func ResponsesArgumentsString(arguments json.RawMessage) string + type ActionButton struct + CustomId any + Emoji any + Label any + Style any + Type any + type AdvancedCustomConfig struct + Routes []AdvancedCustomRoute + func (c *AdvancedCustomConfig) MatchPath(requestPath string) (AdvancedCustomRoute, bool) + func (c *AdvancedCustomConfig) SupportsPath(requestPath string) bool + func (c *AdvancedCustomConfig) Validate() error + type AdvancedCustomRoute struct + Auth *AdvancedCustomRouteAuth + Converter string + IncomingPath string + UpstreamPath string + type AdvancedCustomRouteAuth struct + Name string + Type string + Value string + type AnthropicModel struct + CreatedAt string + DisplayName string + ID string + Type string + type AudioRequest struct + InitialCodecChunkFrames json.RawMessage + Input string + Instructions string + Language json.RawMessage + MaxNewTokens json.RawMessage + Metadata json.RawMessage + Model string + RefAudio json.RawMessage + RefText json.RawMessage + ResponseFormat string + Speed *float64 + StreamFormat string + TaskType json.RawMessage + Voice string + XVectorOnlyMode json.RawMessage + func (r *AudioRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *AudioRequest) IsStream(c *gin.Context) bool + func (r *AudioRequest) SetModelName(modelName string) + type AudioResponse struct + Text string + type AwsKeyType string + const AwsKeyTypeAKSK + const AwsKeyTypeApiKey + type BaseRequest struct + func (b *BaseRequest) GetTokenCountMeta() *types.TokenCountMeta + func (b *BaseRequest) IsStream(c *gin.Context) bool + func (b *BaseRequest) SetModelName(modelName string) + type BoolValue bool + func (b *BoolValue) UnmarshalJSON(data []byte) error + func (b BoolValue) MarshalJSON() ([]byte, error) + type ChannelOtherSettings struct + AdvancedCustom *AdvancedCustomConfig + AllowIncludeObfuscation bool + AllowInferenceGeo bool + AllowSafetyIdentifier bool + AllowServiceTier bool + AllowSpeed bool + AwsKeyType AwsKeyType + AzureResponsesVersion string + ClaudeBetaQuery bool + DisableStore bool + OpenRouterEnterprise *bool + TaskProtocol string + TaskProtocolConfig *TaskProtocolConfig + UpstreamModelUpdateAutoSyncEnabled bool + UpstreamModelUpdateCheckEnabled bool + UpstreamModelUpdateIgnoredModels []string + UpstreamModelUpdateLastCheckTime int64 + UpstreamModelUpdateLastDetectedModels []string + UpstreamModelUpdateLastRemovedModels []string + VertexKeyType VertexKeyType + func (s *ChannelOtherSettings) IsOpenRouterEnterprise() bool + type ChannelSettings struct + ForceFormat bool + PassThroughBodyEnabled bool + Proxy string + SystemPrompt string + SystemPromptOverride bool + ThinkingToContent bool + type ChatCompletionsStreamResponse struct + Choices []ChatCompletionsStreamResponseChoice + Created int64 + Id string + Model string + Object string + SystemFingerprint *string + Usage *Usage + func (c *ChatCompletionsStreamResponse) ClearToolCalls() + func (c *ChatCompletionsStreamResponse) Copy() *ChatCompletionsStreamResponse + func (c *ChatCompletionsStreamResponse) GetFirstToolCall() *ToolCallResponse + func (c *ChatCompletionsStreamResponse) GetSystemFingerprint() string + func (c *ChatCompletionsStreamResponse) IsFinished() bool + func (c *ChatCompletionsStreamResponse) IsToolCall() bool + func (c *ChatCompletionsStreamResponse) SetSystemFingerprint(s string) + type ChatCompletionsStreamResponseChoice struct + Delta ChatCompletionsStreamResponseChoiceDelta + FinishReason *string + Index int + Logprobs *any + type ChatCompletionsStreamResponseChoiceDelta struct + Content *string + Reasoning *string + ReasoningContent *string + Role string + ToolCalls []ToolCallResponse + func (c *ChatCompletionsStreamResponseChoiceDelta) GetContentString() string + func (c *ChatCompletionsStreamResponseChoiceDelta) GetReasoningContent() string + func (c *ChatCompletionsStreamResponseChoiceDelta) SetContentString(s string) + func (c *ChatCompletionsStreamResponseChoiceDelta) SetReasoningContent(s string) + type ChatCompletionsStreamResponseSimple struct + Choices []ChatCompletionsStreamResponseChoice + Usage *Usage + type ClaudeCacheCreationUsage struct + Ephemeral1hInputTokens int + Ephemeral5mInputTokens int + type ClaudeErrorWithStatusCode struct + Error types.ClaudeError + LocalError bool + StatusCode int + type ClaudeMediaMessage struct + CacheControl json.RawMessage + Content any + Delta string + Id string + Input any + Model string + Name string + PartialJson *string + Role string + Signature string + Source *ClaudeMessageSource + StopReason *string + Text *string + Thinking *string + ToolUseId string + Type string + Usage *ClaudeUsage + func (c *ClaudeMediaMessage) GetJsonRowString() string + func (c *ClaudeMediaMessage) GetStringContent() string + func (c *ClaudeMediaMessage) GetText() string + func (c *ClaudeMediaMessage) IsStringContent() bool + func (c *ClaudeMediaMessage) ParseMediaContent() []ClaudeMediaMessage + func (c *ClaudeMediaMessage) SetContent(content any) + func (c *ClaudeMediaMessage) SetText(s string) + func (m *ClaudeMediaMessage) ToFileSource() types.FileSource + type ClaudeMessage struct + Content any + Role string + func (c *ClaudeMessage) GetStringContent() string + func (c *ClaudeMessage) IsStringContent() bool + func (c *ClaudeMessage) ParseContent() ([]ClaudeMediaMessage, error) + func (c *ClaudeMessage) SetContent(content any) + func (c *ClaudeMessage) SetStringContent(content string) + type ClaudeMessageSource struct + Data any + MediaType string + Type string + Url string + type ClaudeMetadata struct + UserId string + type ClaudeRequest struct + CacheControl json.RawMessage + Container json.RawMessage + ContextManagement json.RawMessage + InferenceGeo string + MaxTokens *uint + MaxTokensToSample *uint + McpServers json.RawMessage + Messages []ClaudeMessage + Metadata json.RawMessage + Model string + OutputConfig json.RawMessage + OutputFormat json.RawMessage + Prompt string + ServiceTier string + Speed json.RawMessage + StopSequences []string + Stream *bool + System any + Temperature *float64 + Thinking *Thinking + ToolChoice any + Tools any + TopK *int + TopP *float64 + func (c *ClaudeRequest) AddTool(tool any) + func (c *ClaudeRequest) GetEfforts() string + func (c *ClaudeRequest) GetStringSystem() string + func (c *ClaudeRequest) GetTokenCountMeta() *types.TokenCountMeta + func (c *ClaudeRequest) GetTools() []any + func (c *ClaudeRequest) IsStream(ctx *gin.Context) bool + func (c *ClaudeRequest) IsStringSystem() bool + func (c *ClaudeRequest) ParseSystem() []ClaudeMediaMessage + func (c *ClaudeRequest) SearchToolNameByToolCallId(toolCallId string) string + func (c *ClaudeRequest) SetModelName(modelName string) + func (c *ClaudeRequest) SetStringSystem(system string) + type ClaudeResponse struct + Completion string + Content []ClaudeMediaMessage + ContentBlock *ClaudeMediaMessage + Delta *ClaudeMediaMessage + Error any + Id string + Index *int + Message *ClaudeMediaMessage + Model string + Role string + StopReason string + Type string + Usage *ClaudeUsage + func (c *ClaudeResponse) GetClaudeError() *types.ClaudeError + func (c *ClaudeResponse) GetIndex() int + func (c *ClaudeResponse) SetIndex(i int) + type ClaudeServerToolUse struct + WebSearchRequests int + type ClaudeToolChoice struct + DisableParallelToolUse bool + Name string + Type string + type ClaudeUsage struct + CacheCreation *ClaudeCacheCreationUsage + CacheCreationInputTokens int + CacheReadInputTokens int + ClaudeCacheCreation1hTokens int + ClaudeCacheCreation5mTokens int + InputTokens int + OutputTokens int + ServerToolUse *ClaudeServerToolUse + func (u *ClaudeUsage) GetCacheCreation1hTokens() int + func (u *ClaudeUsage) GetCacheCreation5mTokens() int + func (u *ClaudeUsage) GetCacheCreationTotalTokens() int + type ClaudeWebSearchTool struct + MaxUses int + Name string + Type string + UserLocation *ClaudeWebSearchUserLocation + type ClaudeWebSearchUserLocation struct + City string + Country string + Region string + Timezone string + Type string + type CompletionsStreamResponse struct + Choices []struct{ ... } + type ContentEmbedding struct + Values []float64 + type DifferenceItem struct + Confidence map[string]bool + Current interface{} + Upstreams map[string]interface{} + type EmbeddingOptions struct + FrequencyPenalty *float64 + NumCtx int + NumPredict int + PresencePenalty *float64 + Seed int + Temperature *float64 + TopK int + TopP *float64 + type EmbeddingRequest struct + Dimensions *int + EncodingFormat string + FrequencyPenalty *float64 + Input any + Model string + PresencePenalty *float64 + Seed *float64 + Temperature *float64 + TopP *float64 + User string + func (r *EmbeddingRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *EmbeddingRequest) IsStream(c *gin.Context) bool + func (r *EmbeddingRequest) ParseInput() []string + func (r *EmbeddingRequest) SetModelName(modelName string) + type EmbeddingResponse struct + Data []EmbeddingResponseItem + Model string + Object string + type EmbeddingResponseItem struct + Embedding []float64 + Index int + Object string + type FetchReq struct + IDs []string + type FlexibleEmbeddingResponse struct + Data []FlexibleEmbeddingResponseItem + Model string + Object string + type FlexibleEmbeddingResponseItem struct + Embedding any + Index int + Object string + type FormatJsonSchema struct + Description string + Name string + Schema any + Strict json.RawMessage + type FunctionCall struct + Arguments any + FunctionName string + type FunctionCallingConfig struct + AllowedFunctionNames []string + Mode FunctionCallingConfigMode + type FunctionCallingConfigMode string + type FunctionRequest struct + Arguments string + Description string + Name string + Parameters any + type FunctionResponse struct + Arguments string + Description string + Name string + Parameters any + type GeminiBatchEmbeddingRequest struct + Requests []*GeminiEmbeddingRequest + func (r *GeminiBatchEmbeddingRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *GeminiBatchEmbeddingRequest) IsStream(c *gin.Context) bool + func (r *GeminiBatchEmbeddingRequest) SetModelName(modelName string) + type GeminiBatchEmbeddingResponse struct + Embeddings []*ContentEmbedding + type GeminiChatCandidate struct + Content GeminiChatContent + FinishReason *string + Index int64 + SafetyRatings []GeminiChatSafetyRating + type GeminiChatContent struct + Parts []GeminiPart + Role string + type GeminiChatGenerationConfig struct + CandidateCount *int + EnableEnhancedCivicAnswers *bool + FrequencyPenalty *float32 + ImageConfig json.RawMessage + Logprobs *int32 + MaxOutputTokens *uint + MediaResolution MediaResolution + PresencePenalty *float32 + ResponseJsonSchema json.RawMessage + ResponseLogprobs *bool + ResponseMimeType string + ResponseModalities []string + ResponseSchema any + Seed *int64 + SpeechConfig json.RawMessage + StopSequences []string + Temperature *float64 + ThinkingConfig *GeminiThinkingConfig + TopK *float64 + TopP *float64 + func (c *GeminiChatGenerationConfig) UnmarshalJSON(data []byte) error + type GeminiChatPromptFeedback struct + BlockReason *string + SafetyRatings []GeminiChatSafetyRating + type GeminiChatRequest struct + CachedContent string + Contents []GeminiChatContent + GenerationConfig GeminiChatGenerationConfig + Requests []GeminiChatRequest + SafetySettings []GeminiChatSafetySettings + SystemInstructions *GeminiChatContent + ToolConfig *ToolConfig + Tools json.RawMessage + func (r *GeminiChatRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *GeminiChatRequest) GetTools() []GeminiChatTool + func (r *GeminiChatRequest) IsStream(c *gin.Context) bool + func (r *GeminiChatRequest) SetModelName(modelName string) + func (r *GeminiChatRequest) SetTools(tools []GeminiChatTool) + func (r *GeminiChatRequest) UnmarshalJSON(data []byte) error + type GeminiChatResponse struct + Candidates []GeminiChatCandidate + PromptFeedback *GeminiChatPromptFeedback + UsageMetadata GeminiUsageMetadata + type GeminiChatSafetyRating struct + Category string + Probability string + type GeminiChatSafetySettings struct + Category string + Threshold string + type GeminiChatTool struct + CodeExecution any + FunctionDeclarations any + GoogleSearch any + GoogleSearchRetrieval any + URLContext any + type GeminiEmbeddingRequest struct + Content GeminiChatContent + Model string + OutputDimensionality int + TaskType string + Title string + func (r *GeminiEmbeddingRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *GeminiEmbeddingRequest) IsStream(c *gin.Context) bool + func (r *GeminiEmbeddingRequest) SetModelName(modelName string) + type GeminiEmbeddingResponse struct + Embedding ContentEmbedding + type GeminiFileData struct + FileUri string + MimeType string + type GeminiFunctionResponse struct + ID json.RawMessage + Name string + Parts json.RawMessage + Response map[string]interface{} + Scheduling json.RawMessage + WillContinue json.RawMessage + type GeminiImageInstance struct + Prompt string + type GeminiImageParameters struct + AspectRatio string + ImageSize string + PersonGeneration string + SampleCount int + type GeminiImagePrediction struct + BytesBase64Encoded string + MimeType string + RaiFilteredReason string + SafetyAttributes any + type GeminiImageRequest struct + Instances []GeminiImageInstance + Parameters GeminiImageParameters + type GeminiImageResponse struct + Predictions []GeminiImagePrediction + type GeminiInlineData struct + Data string + MimeType string + func (d *GeminiInlineData) ToFileSource() types.FileSource + func (g *GeminiInlineData) UnmarshalJSON(data []byte) error + type GeminiModel struct + BaseModelId interface{} + Description interface{} + DisplayName interface{} + InputTokenLimit interface{} + MaxTemperature interface{} + Name interface{} + OutputTokenLimit interface{} + SupportedGenerationMethods []interface{} + Temperature interface{} + Thinking interface{} + TopK interface{} + TopP interface{} + Version interface{} + type GeminiPart struct + CodeExecutionResult *GeminiPartCodeExecutionResult + ExecutableCode *GeminiPartExecutableCode + FileData *GeminiFileData + FunctionCall *FunctionCall + FunctionResponse *GeminiFunctionResponse + InlineData *GeminiInlineData + MediaResolution json.RawMessage + Text string + Thought bool + ThoughtSignature json.RawMessage + VideoMetadata json.RawMessage + func (p *GeminiPart) UnmarshalJSON(data []byte) error + type GeminiPartCodeExecutionResult struct + Outcome string + Output string + type GeminiPartExecutableCode struct + Code string + Language string + type GeminiPromptTokensDetails struct + Modality string + TokenCount int + type GeminiThinkingConfig struct + IncludeThoughts bool + ThinkingBudget *int + ThinkingLevel string + func (c *GeminiThinkingConfig) SetThinkingBudget(budget int) + func (c *GeminiThinkingConfig) UnmarshalJSON(data []byte) error + type GeminiUsageMetadata struct + CachedContentTokenCount int + CandidatesTokenCount int + CandidatesTokensDetails []GeminiPromptTokensDetails + PromptTokenCount int + PromptTokensDetails []GeminiPromptTokensDetails + ThoughtsTokenCount int + ToolUsePromptTokenCount int + ToolUsePromptTokensDetails []GeminiPromptTokensDetails + TotalTokenCount int + type GeneralErrorResponse struct + Detail string + Err string + Error json.RawMessage + ErrorMsg string + Header struct{ ... } + Message string + Metadata json.RawMessage + Msg string + Response struct{ ... } + func (e GeneralErrorResponse) ToMessage() string + func (e GeneralErrorResponse) TryToOpenAIError() *types.OpenAIError + type GeneralOpenAIRequest struct + Audio json.RawMessage + ChatTemplateKwargs json.RawMessage + Dimensions *int + EnableSearch json.RawMessage + EnableThinking json.RawMessage + EncodingFormat json.RawMessage + ExtraBody json.RawMessage + FrequencyPenalty *float64 + FunctionCall json.RawMessage + Functions json.RawMessage + Input any + Instruction string + LogProbs *bool + LogitBias json.RawMessage + MaxCompletionTokens *uint + MaxTokens *uint + Messages []Message + Metadata json.RawMessage + Modalities json.RawMessage + Model string + N *int + ParallelTooCalls *bool + Prediction json.RawMessage + Prefix any + PresencePenalty *float64 + Prompt any + PromptCacheKey string + PromptCacheRetention json.RawMessage + Reasoning json.RawMessage + ReasoningEffort string + ReasoningSplit json.RawMessage + ResponseFormat *ResponseFormat + ReturnImages *bool + ReturnRelatedQuestions *bool + SafetyIdentifier json.RawMessage + SearchDomainFilter json.RawMessage + SearchMode json.RawMessage + SearchParameters json.RawMessage + SearchRecencyFilter json.RawMessage + Seed *float64 + ServiceTier json.RawMessage + Size string + Stop any + Store json.RawMessage + Stream *bool + StreamOptions *StreamOptions + Suffix any + THINKING json.RawMessage + Temperature *float64 + Think json.RawMessage + ToolChoice any + Tools []ToolCallRequest + TopK *int + TopLogProbs *int + TopP *float64 + Usage json.RawMessage + User json.RawMessage + Verbosity json.RawMessage + VlHighResolutionImages json.RawMessage + WebSearch json.RawMessage + WebSearchOptions *WebSearchOptions + func (r *GeneralOpenAIRequest) GetMaxTokens() uint + func (r *GeneralOpenAIRequest) GetSystemRoleName() string + func (r *GeneralOpenAIRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *GeneralOpenAIRequest) IsStream(c *gin.Context) bool + func (r *GeneralOpenAIRequest) ParseInput() []string + func (r *GeneralOpenAIRequest) SetModelName(modelName string) + func (r *GeneralOpenAIRequest) ToMap() map[string]any + type GoAPIFetchResponseData struct + Clips map[string]SunoSong + Input string + Status string + TaskID string + type GoAPITaskResponse struct + Code int + Data T + ErrorMessage string + Message string + type GoAPITaskResponseData struct + TaskID string + type ImageData struct + B64Json string + RevisedPrompt string + Url string + type ImageRequest struct + Background json.RawMessage + Extra map[string]json.RawMessage + ExtraFields json.RawMessage + Image json.RawMessage + Images json.RawMessage + InputFidelity json.RawMessage + Mask json.RawMessage + Model string + Moderation json.RawMessage + N *uint + OutputCompression json.RawMessage + OutputFormat json.RawMessage + PartialImages json.RawMessage + Prompt string + Quality string + ResponseFormat string + Size string + Stream *bool + Style json.RawMessage + User json.RawMessage + UserId json.RawMessage + Watermark *bool + WatermarkEnabled json.RawMessage + func (i *ImageRequest) GetTokenCountMeta() *types.TokenCountMeta + func (i *ImageRequest) IsStream(c *gin.Context) bool + func (i *ImageRequest) SetModelName(modelName string) + func (i *ImageRequest) UnmarshalJSON(data []byte) error + func (r ImageRequest) MarshalJSON() ([]byte, error) + type ImageResponse struct + Created int64 + Data []ImageData + Metadata json.RawMessage + type ImgUrls struct + Url string + type IncompleteDetails struct + Reasoning string + type Input struct + Content json.RawMessage + Role string + Type string + type InputAudioTranscription struct + Model string + type InputSchema struct + Properties any + Required any + Type string + type InputTokenDetails struct + AudioTokens int + CachedCreationTokens int + CachedTokens int + ImageTokens int + TextTokens int + type IntValue int + func (i *IntValue) UnmarshalJSON(b []byte) error + func (i IntValue) MarshalJSON() ([]byte, error) + type LatLng struct + Latitude *float64 + Longitude *float64 + type MediaContent struct + CacheControl json.RawMessage + File any + ImageUrl any + InputAudio any + Text string + Type string + VideoUrl any + func (m *MediaContent) GetFile() *MessageFile + func (m *MediaContent) GetImageMedia() *MessageImageUrl + func (m *MediaContent) GetInputAudio() *MessageInputAudio + func (m *MediaContent) GetVideoUrl() *MessageVideoUrl + func (m *MediaContent) ToFileSource() types.FileSource + type MediaInput struct + Detail string + FileUrl string + ImageUrl string + Text string + Type string + type MediaResolution string + type Message struct + Content any + Name *string + Prefix *bool + Reasoning *string + ReasoningContent *string + Role string + ToolCallId string + ToolCalls json.RawMessage + func (m *Message) GetPrefix() bool + func (m *Message) GetReasoningContent() string + func (m *Message) IsStringContent() bool + func (m *Message) ParseContent() []MediaContent + func (m *Message) ParseToolCalls() []ToolCallRequest + func (m *Message) SetMediaContent(content []MediaContent) + func (m *Message) SetNullContent() + func (m *Message) SetPrefix(prefix bool) + func (m *Message) SetStringContent(content string) + func (m *Message) SetToolCalls(toolCalls any) + func (m *Message) StringContent() string + type MessageFile struct + FileData string + FileId string + FileName string + type MessageImageUrl struct + Detail string + MimeType string + Url string + func (m *MessageImageUrl) IsRemoteImage() bool + type MessageInputAudio struct + Data string + Format string + type MessageVideoUrl struct + Url string + type MidjourneyDto struct + Action string + BotType string + Buttons any + CustomId string + Description string + FailReason string + FinishTime int64 + ImageUrl string + MaskBase64 string + MjId string + Progress string + Prompt string + PromptEn string + Properties *Properties + StartTime int64 + State string + Status string + SubmitTime int64 + VideoUrl string + VideoUrls []ImgUrls + type MidjourneyRequest struct + Action string + Base64Array []string + BotType string + Content string + CustomId string + Index int + MaskBase64 string + NotifyHook string + Prompt string + State string + TaskId string + type MidjourneyResponse struct + Code int + Description string + Properties interface{} + Result string + type MidjourneyResponseWithStatusCode struct + Response MidjourneyResponse + StatusCode int + type MidjourneyStatus struct + Status int + type MidjourneyUploadResponse struct + Code int + Description string + Result []string + type MidjourneyWithoutStatus struct + Action string + ChannelId int + Code int + Description string + FailReason string + FinishTime int64 + Id int + ImageUrl string + MjId string + Progress string + Prompt string + PromptEn string + StartTime int64 + State string + SubmitTime int64 + UserId int + type Notify struct + Content string + Title string + Type string + Values []interface{} + func NewNotify(t string, title string, content string, values []interface{}) Notify + type OpenAIEmbeddingResponse struct + Data []OpenAIEmbeddingResponseItem + Model string + Object string + type OpenAIEmbeddingResponseItem struct + Embedding []float64 + Index int + Object string + type OpenAIErrorWithStatusCode struct + Error types.OpenAIError + LocalError bool + StatusCode int + type OpenAIModels struct + Created int + Id string + Object string + OwnedBy string + SupportedEndpointTypes []constant.EndpointType + type OpenAIResponsesCompactionRequest struct + Input json.RawMessage + Instructions json.RawMessage + Model string + PreviousResponseID string + func (r *OpenAIResponsesCompactionRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *OpenAIResponsesCompactionRequest) IsStream(c *gin.Context) bool + func (r *OpenAIResponsesCompactionRequest) SetModelName(modelName string) + type OpenAIResponsesCompactionResponse struct + CreatedAt int + Error any + ID string + Object string + Output json.RawMessage + Usage *Usage + func (o *OpenAIResponsesCompactionResponse) GetOpenAIError() *types.OpenAIError + type OpenAIResponsesRequest struct + ContextManagement json.RawMessage + Conversation json.RawMessage + EnableThinking json.RawMessage + Include json.RawMessage + Input json.RawMessage + Instructions json.RawMessage + MaxOutputTokens *uint + MaxToolCalls *uint + Metadata json.RawMessage + Model string + ParallelToolCalls json.RawMessage + Preset json.RawMessage + PreviousResponseID string + Prompt json.RawMessage + PromptCacheKey json.RawMessage + PromptCacheRetention json.RawMessage + Reasoning *Reasoning + SafetyIdentifier json.RawMessage + ServiceTier string + Store json.RawMessage + Stream *bool + StreamOptions *StreamOptions + Temperature *float64 + Text json.RawMessage + ToolChoice json.RawMessage + Tools json.RawMessage + TopLogProbs *int + TopP *float64 + Truncation json.RawMessage + User json.RawMessage + func (r *OpenAIResponsesRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *OpenAIResponsesRequest) GetToolsMap() []map[string]any + func (r *OpenAIResponsesRequest) IsStream(c *gin.Context) bool + func (r *OpenAIResponsesRequest) ParseInput() []MediaInput + func (r *OpenAIResponsesRequest) SetModelName(modelName string) + type OpenAIResponsesResponse struct + CreatedAt int + Error any + ID string + IncompleteDetails *IncompleteDetails + Instructions json.RawMessage + MaxOutputTokens int + Metadata json.RawMessage + Model string + Object string + Output []ResponsesOutput + ParallelToolCalls bool + PreviousResponseID json.RawMessage + Reasoning *Reasoning + Status json.RawMessage + Store bool + Temperature float64 + ToolChoice json.RawMessage + Tools []map[string]any + TopP float64 + Truncation json.RawMessage + Usage *Usage + User json.RawMessage + func (o *OpenAIResponsesResponse) GetOpenAIError() *types.OpenAIError + func (o *OpenAIResponsesResponse) GetQuality() string + func (o *OpenAIResponsesResponse) GetSize() string + func (o *OpenAIResponsesResponse) HasImageGenerationCall() bool + type OpenAITextResponse struct + Choices []OpenAITextResponseChoice + Created any + Error any + Id string + Model string + Object string + func (o *OpenAITextResponse) GetOpenAIError() *types.OpenAIError + type OpenAITextResponseChoice struct + FinishReason string + Index int + type OpenAIVideo struct + CompletedAt int64 + CreatedAt int64 + Error *OpenAIVideoError + ExpiresAt int64 + ID string + Metadata map[string]any + Model string + Object string + Progress int + RemixedFromVideoID string + Seconds string + Size string + Status string + TaskID string + func NewOpenAIVideo() *OpenAIVideo + func (m *OpenAIVideo) SetMetadata(k string, v any) + func (m *OpenAIVideo) SetProgressStr(progress string) + type OpenAIVideoError struct + Code string + Message string + type OpenAIVideoResponse struct + Bytes int64 + CreatedAt int64 + ExpiresAt int64 + Filename string + Id string + Object string + Purpose string + type OutputConfigForEffort struct + Effort string + type OutputTokenDetails struct + AudioTokens int + ImageTokens int + ReasoningTokens int + TextTokens int + type PlayGroundRequest struct + Group string + Model string + type Properties struct + FinalPrompt string + FinalZhPrompt string + type RealTimeTool struct + Description string + Name string + Parameters any + Type string + type RealtimeContent struct + Audio string + Text string + Transcript string + Type string + type RealtimeEvent struct + Audio string + Delta string + Error *types.OpenAIError + EventId string + Item *RealtimeItem + Response *RealtimeResponse + Session *RealtimeSession + Type string + type RealtimeItem struct + CallId string + Content []RealtimeContent + Id string + Name *string + Role string + Status string + ToolCalls any + Type string + type RealtimeResponse struct + Usage *RealtimeUsage + type RealtimeSession struct + InputAudioFormat string + InputAudioTranscription InputAudioTranscription + Instructions string + Modalities []string + OutputAudioFormat string + Temperature float64 + ToolChoice string + Tools []RealTimeTool + TurnDetection interface{} + Voice string + type RealtimeUsage struct + InputTokenDetails InputTokenDetails + InputTokens int + OutputTokenDetails OutputTokenDetails + OutputTokens int + TotalTokens int + type Reasoning struct + Effort string + Summary string + type Request interface + GetTokenCountMeta func() *types.TokenCountMeta + IsStream func(c *gin.Context) bool + SetModelName func(modelName string) + type RerankDocument struct + Text any + type RerankRequest struct + Documents []any + MaxChunkPerDoc *int + Model string + OverLapTokens *int + Query string + ReturnDocuments *bool + TopN *int + func (r *RerankRequest) GetReturnDocuments() bool + func (r *RerankRequest) GetTokenCountMeta() *types.TokenCountMeta + func (r *RerankRequest) IsStream(c *gin.Context) bool + func (r *RerankRequest) SetModelName(modelName string) + type RerankResponse struct + Results []RerankResponseResult + Usage Usage + type RerankResponseResult struct + Document any + Index int + RelevanceScore float64 + type ResponseFormat struct + JsonSchema json.RawMessage + Type string + type ResponsesOutput struct + Arguments json.RawMessage + CallId string + Content []ResponsesOutputContent + ID string + Name string + Quality string + Role string + Size string + Status string + Type string + func (r *ResponsesOutput) ArgumentsString() string + type ResponsesOutputContent struct + Annotations []interface{} + Text string + Type string + type ResponsesReasoningSummaryPart struct + Text string + Type string + type ResponsesStreamResponse struct + ContentIndex *int + Delta string + Item *ResponsesOutput + ItemID string + OutputIndex *int + Part *ResponsesReasoningSummaryPart + Response *OpenAIResponsesResponse + SummaryIndex *int + Type string + type RetrievalConfig struct + LanguageCode string + LatLng *LatLng + type Segment struct + AvgLogprob float64 + CompressionRatio float64 + End float64 + Id int + NoSpeechProb float64 + Seek int + Start float64 + Temperature float64 + Text string + Tokens []int + type SensitiveResponse struct + Content string + SensitiveWords []string + type SimpleResponse struct + Error any + func (s *SimpleResponse) GetOpenAIError() *types.OpenAIError + type StreamOptions struct + IncludeObfuscation bool + IncludeUsage bool + type StringValue string + func (s *StringValue) UnmarshalJSON(data []byte) error + func (s StringValue) MarshalJSON() ([]byte, error) + type SunoDataResponse struct + Action string + Data json.RawMessage + FailReason string + FinishTime int64 + StartTime int64 + Status string + SubmitTime int64 + TaskID string + type SunoGoAPISubmitReq struct + CustomMode bool + Input SunoGoAPISubmitReqInput + NotifyHook string + type SunoGoAPISubmitReqInput struct + ContinueAt float64 + ContinueClipId string + GptDescriptionPrompt string + MakeInstrumental bool + Mv string + Prompt string + Tags string + TaskID string + Title string + type SunoLyrics struct + ID string + Status string + Text string + Title string + type SunoMetadata struct + AudioPromptID interface{} + Duration interface{} + ErrorMessage interface{} + ErrorType interface{} + GPTDescriptionPrompt interface{} + Prompt string + Tags string + type SunoSong struct + AudioURL string + ID string + ImageLargeURL string + ImageURL string + MajorModelVersion string + Metadata SunoMetadata + ModelName string + Status string + Text string + Title string + VideoURL string + type SunoSubmitReq struct + ContinueAt float64 + ContinueClipId string + GptDescriptionPrompt string + MakeInstrumental bool + Mv string + Prompt string + Tags string + TaskID string + Title string + type SwapFaceRequest struct + SourceBase64 string + TargetBase64 string + type SyncableChannel struct + BaseURL string + ID int + Name string + Status int + Type int + type TaskData interface + type TaskDto struct + Action string + ChannelId int + CreatedAt int64 + Data json.RawMessage + FailReason string + FinishTime int64 + Group string + ID int64 + Platform string + Progress string + Properties any + Quota int + ResultURL string + StartTime int64 + Status string + SubmitTime int64 + TaskID string + UpdatedAt int64 + UserId int + Username string + type TaskError struct + Code string + Data any + Error error + LocalError bool + Message string + StatusCode int + type TaskProtocolConfig struct + CreatedAtPath string + ErrorMessagePath string + ProgressPath string + QueryPath string + ResultURLPaths []string + StatusMap map[string]string + StatusPath string + SubmitPath string + TaskIDPath string + UpdatedAtPath string + type TaskResponse struct + Code string + Data T + Message string + func (t *TaskResponse[T]) IsSuccess() bool + type TestResult struct + Error string + Name string + Status string + type TextResponse struct + Choices []OpenAITextResponseChoice + Created int64 + Id string + Model string + Object string + type Thinking struct + BudgetTokens *int + Display string + Type string + func (c *Thinking) GetBudgetTokens() int + type Tool struct + Description string + InputSchema map[string]interface{} + Name string + type ToolCallRequest struct + Custom json.RawMessage + Function FunctionRequest + ID string + Type string + type ToolCallResponse struct + Function FunctionResponse + ID string + Index *int + Type any + func (c *ToolCallResponse) SetIndex(i int) + type ToolConfig struct + FunctionCallingConfig *FunctionCallingConfig + IncludeServerSideToolInvocations *bool + RetrievalConfig *RetrievalConfig + type UpstreamDTO struct + BaseURL string + Endpoint string + ID int + Name string + type UpstreamRequest struct + ChannelIDs []int64 + Timeout int + Upstreams []UpstreamDTO + type Usage struct + ClaudeCacheCreation1hTokens int + ClaudeCacheCreation5mTokens int + CompletionTokenDetails OutputTokenDetails + CompletionTokens int + Cost any + InputTokens int + InputTokensDetails *InputTokenDetails + OutputTokens int + PromptCacheHitTokens int + PromptTokens int + PromptTokensDetails InputTokenDetails + TotalTokens int + UsageSemantic string + UsageSource string + type UserSetting struct + AcceptUnsetRatioModel bool + BarkUrl string + BillingPreference string + GotifyPriority int + GotifyToken string + GotifyUrl string + Language string + NotificationEmail string + NotifyType string + QuotaWarningThreshold float64 + RecordIpLog bool + SidebarModules string + UpstreamModelUpdateNotifyEnabled bool + WebhookSecret string + WebhookUrl string + type VertexKeyType string + const VertexKeyTypeAPIKey + const VertexKeyTypeJSON + type VideoRequest struct + Duration float64 + Fps int + Height int + Image string + Metadata map[string]any + Model string + N int + Prompt string + ResponseFormat string + Seed int + User string + Width int + type VideoResponse struct + Status string + TaskId string + type VideoTaskError struct + Code int + Message string + type VideoTaskMetadata struct + Duration float64 + Fps int + Height int + Seed int + Width int + type VideoTaskResponse struct + Error *VideoTaskError + Format string + Metadata *VideoTaskMetadata + Status string + TaskId string + Url string + type WebSearchOptions struct + SearchContextSize string + UserLocation json.RawMessage + type WhisperVerboseJSONResponse struct + Duration float64 + Language string + Segments []Segment + Task string + Text string