• 聊天(chat)
    • AiVideoOrderResponse
    • GeminiUsageMetadataDto
    • key
    • CreateAigcApiTokenResponse
    • GoogleGeminiInlineBlobDto
    • ConfirmAigcEventsRequest
    • AigcEventOutputFileDto
    • ResponseEntity?
    • AiImageOrderResponse
    • GptprotoMessageDto
    • ImageDataItem
    • AiTextOrderResponse
    • AigcVideoTaskInputFileInfoDto
    • GeminiContentPartDto
    • ModelMap
    • ChatInputAudioDto
    • CreateAigcApiTokenRequest
    • GoogleGeminiFileDataDto
    • AigcTaskDetailDto
    • AigcEventItemDto
    • AiImageOrderRequest
    • GptprotoChoiceDto
    • CacheControlEphemeral
    • GptprotoImageGenerateResponse
    • AigcVideoOutputConfigDto
    • GeminiContentDto
    • HttpStatusCode
    • CitationItem
    • ChatPartDto
    • GoogleGeminiPartDto
    • DescribeTaskDetailResponse
    • PullAigcEventsResponse
    • GoogleGeminiFunctionCallDto
    • GptprotoUsageDto
    • MapObject
    • GptprotoImageGenerateRequest
    • AiVideoOrderRequest
    • GeminiCandidateDto
    • key
    • ContentBlock
    • ChatFunctionCallDto
    • PredictionData
    • GoogleGeminiContentDto
    • DescribeTaskDetailRequest
    • GoogleGeminiFunctionResponseDto
    • GptprotoChatResponse
    • AiTextOrderRequest
    • GeminiGenerateContentResponse
    • CreateAigcImageResponse
    • ServerToolUse
    • ChatToolCallDto
    • GptprotoViduPredictionResponse
    • GoogleGeminiGenerationConfigDto
    • GoogleGeminiExecutableCodeDto
    • GptprotoChatRequest
    • JsonSchemaFormat
    • GoogleGeminiEmbedContentRequest
    • GeminiThinkingConfigDto
    • AigcImageTaskInputFileInfoDto
    • Usage
    • ChatMessageDto
    • ClaudeFileAnalysisResponse
    • GptprotoViduImageToVideoRequest
    • GoogleGeminiGenerateContentRequest
    • GoogleGeminiCodeExecutionResultDto
    • OutputConfig
    • GeminiGenerationConfigDto
    • AigcImageOutputConfigDto
    • ClaudeWebSearchResponse
    • CacheControl
    • Container
    • ToolChoice
    • GeminiGenerateContentRequest
    • CreateAigcImageRequest
    • MessageItem
    • DocumentSourceWrapper
    • ClaudeTextToTextResponse
    • GoogleGeminiSystemInstructionDto
    • ContentBlockParam
    • UserLocation
    • CitationsConfig
    • key
    • GoogleGeminiFunctionCallingConfigDto
    • StringOrContentBlocks
    • WebSearchToolItem
    • ContentBlock
    • GoogleGeminiLatLngDto
    • MessageParam
    • ClaudeWebSearchRequest
    • key
    • GoogleGeminiRetrievalConfigDto
    • Metadata
    • ClaudeFileAnalysisRequest
    • key
    • GoogleGeminiToolConfigDto
    • ResponseEntityStreamingResponseBody
    • TextCitationParam
    • ToolItem
    • GoogleGeminiThinkingConfigDto
    • TextBlockParam
    • key
    • StringOrTextBlocks
    • ClaudeTextToTextRequest
    • GoogleGeminiSafetySettingDto
    • ThinkingConfig
    • GoogleGeminiCodeExecutionToolDto
    • InputSchema
    • MapJsonNode
    • GoogleGeminiToolDto
    • CitationsConfigParam
    • ToolDefinition
    • AnthropicMessagesCreateRequest
    • CreateAigcVideoResponse
    • VolcengineMediaUrl
    • VolcengineVideoContentPart
    • VolcengineVideoTool
    • CreateAigcVideoRequest
    • VolcengineCreateVideoTaskRequest
    • ConversationModelOption
    • ConversationSessionItem
    • ConversationMessageItem
    • ConversationSendRequest
    • Handler
    • MapString
    • MediaType
    • DataWithMediaType
    • Throwable
    • StackTraceElement
    • Runnable
    • DefaultCallback
    • ErrorCallback
    • SseEmitter
    • ConversationImageOrderRequest
    • ConversationVideoOrderRequest

    ChatMessageDto

    对话消息(/v1/chat/completions messages 数组元素)。
    content 为 Part 集合,与接口文档一致。

    {
        "role": "string",
        "content": [
            {
                "type": "string",
                "text": "string",
                "imageUrl": "string",
                "inputAudio": {
                    "data": "string",
                    "format": "string"
                },
                "fileName": "string",
                "fileUrl": "string"
            }
        ],
        "toolCallId": "string",
        "toolCalls": [
            {
                "id": "string",
                "type": "string",
                "function": {
                    "name": "string",
                    "arguments": "string"
                }
            }
        ]
    }
    Built with