Documentation
¶
Index ¶
- type Aliyun
- func (a *Aliyun) AudioSpeech(ctx context.Context, data []byte) (response model.SpeechResponse, err error)
- func (a *Aliyun) AudioTranscriptions(ctx context.Context, request model.AudioRequest) (response model.AudioResponse, err error)
- func (a *Aliyun) BatchCancel(ctx context.Context, request model.BatchCancelRequest) (response model.BatchResponse, err error)
- func (a *Aliyun) BatchCreate(ctx context.Context, request model.BatchCreateRequest) (response model.BatchResponse, err error)
- func (a *Aliyun) BatchList(ctx context.Context, request model.BatchListRequest) (response model.BatchListResponse, err error)
- func (a *Aliyun) BatchRetrieve(ctx context.Context, request model.BatchRetrieveRequest) (response model.BatchResponse, err error)
- func (a *Aliyun) ChatCompletions(ctx context.Context, data any) (response model.ChatCompletionResponse, err error)
- func (a *Aliyun) ChatCompletionsStream(ctx context.Context, data any) (responseChan chan *model.ChatCompletionResponse, err error)
- func (a *Aliyun) ConvAudioSpeechRequest(ctx context.Context, data []byte) (request model.SpeechRequest, err error)
- func (a *Aliyun) ConvAudioSpeechResponse(ctx context.Context, data []byte) (response model.SpeechResponse, err error)
- func (a *Aliyun) ConvAudioTranscriptionsRequest(ctx context.Context, request model.AudioRequest) (data *bytes.Buffer, err error)
- func (a *Aliyun) ConvAudioTranscriptionsResponse(ctx context.Context, data []byte) (response model.AudioResponse, err error)
- func (a *Aliyun) ConvBatchCreateRequest(ctx context.Context, request model.BatchCreateRequest) (data *bytes.Buffer, err error)
- func (a *Aliyun) ConvBatchListResponse(ctx context.Context, data []byte) (response model.BatchListResponse, err error)
- func (a *Aliyun) ConvBatchResponse(ctx context.Context, data []byte) (response model.BatchResponse, err error)
- func (a *Aliyun) ConvChatCompletionsRequest(ctx context.Context, data any) (request model.ChatCompletionRequest, err error)
- func (a *Aliyun) ConvChatCompletionsRequestOfficial(ctx context.Context, request model.ChatCompletionRequest) ([]byte, error)
- func (a *Aliyun) ConvChatCompletionsResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (a *Aliyun) ConvChatCompletionsResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)
- func (a *Aliyun) ConvChatCompletionsStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (a *Aliyun) ConvChatCompletionsStreamResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)
- func (a *Aliyun) ConvChatResponsesRequest(ctx context.Context, data []byte) (request model.ChatCompletionRequest, err error)
- func (a *Aliyun) ConvChatResponsesResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (a *Aliyun) ConvChatResponsesStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (a *Aliyun) ConvFileContentResponse(ctx context.Context, data []byte) (response model.FileContentResponse, err error)
- func (a *Aliyun) ConvFileListResponse(ctx context.Context, data []byte) (response model.FileListResponse, err error)
- func (a *Aliyun) ConvFileResponse(ctx context.Context, data []byte) (response model.FileResponse, err error)
- func (a *Aliyun) ConvFileUploadRequest(ctx context.Context, request model.FileUploadRequest) (data *bytes.Buffer, err error)
- func (a *Aliyun) ConvImageEditsRequest(ctx context.Context, request model.ImageEditRequest) (data *bytes.Buffer, err error)
- func (a *Aliyun) ConvImageEditsRequestOfficial(ctx context.Context, request model.ImageEditRequest) ([]byte, error)
- func (a *Aliyun) ConvImageEditsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (a *Aliyun) ConvImageEditsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)
- func (a *Aliyun) ConvImageGenerationsRequest(ctx context.Context, data []byte) (request model.ImageGenerationRequest, err error)
- func (a *Aliyun) ConvImageGenerationsRequestOfficial(ctx context.Context, request model.ImageGenerationRequest) ([]byte, error)
- func (a *Aliyun) ConvImageGenerationsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (a *Aliyun) ConvImageGenerationsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)
- func (a *Aliyun) ConvTextEmbeddingsRequest(ctx context.Context, data []byte) (request model.EmbeddingRequest, err error)
- func (a *Aliyun) ConvTextEmbeddingsResponse(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)
- func (a *Aliyun) ConvVideoContentResponse(ctx context.Context, data []byte) (response model.VideoContentResponse, err error)
- func (a *Aliyun) ConvVideoCreateRequest(ctx context.Context, request model.VideoCreateRequest) (data *bytes.Buffer, err error)
- func (a *Aliyun) ConvVideoJobResponse(ctx context.Context, data []byte) (response model.VideoJobResponse, err error)
- func (a *Aliyun) ConvVideoListResponse(ctx context.Context, data []byte) (response model.VideoListResponse, err error)
- func (a *Aliyun) FileContent(ctx context.Context, request model.FileContentRequest) (response model.FileContentResponse, err error)
- func (a *Aliyun) FileDelete(ctx context.Context, request model.FileDeleteRequest) (response model.FileResponse, err error)
- func (a *Aliyun) FileList(ctx context.Context, request model.FileListRequest) (response model.FileListResponse, err error)
- func (a *Aliyun) FileRetrieve(ctx context.Context, request model.FileRetrieveRequest) (response model.FileResponse, err error)
- func (a *Aliyun) FileUpload(ctx context.Context, request model.FileUploadRequest) (response model.FileResponse, err error)
- func (a *Aliyun) ImageEdits(ctx context.Context, request model.ImageEditRequest) (response model.ImageResponse, err error)
- func (a *Aliyun) ImageGenerations(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (a *Aliyun) TextEmbeddings(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)
- func (a *Aliyun) VideoContent(ctx context.Context, request model.VideoContentRequest) (response model.VideoContentResponse, err error)
- func (a *Aliyun) VideoCreate(ctx context.Context, request model.VideoCreateRequest) (response model.VideoJobResponse, err error)
- func (a *Aliyun) VideoDelete(ctx context.Context, request model.VideoDeleteRequest) (response model.VideoJobResponse, err error)
- func (a *Aliyun) VideoList(ctx context.Context, request model.VideoListRequest) (response model.VideoListResponse, err error)
- func (a *Aliyun) VideoRemix(ctx context.Context, request model.VideoRemixRequest) (response model.VideoJobResponse, err error)
- func (a *Aliyun) VideoRetrieve(ctx context.Context, request model.VideoRetrieveRequest) (response model.VideoJobResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aliyun ¶
type Aliyun struct {
*options.AdapterOptions
// contains filtered or unexported fields
}
func NewAdapter ¶
func NewAdapter(ctx context.Context, options *options.AdapterOptions) *Aliyun
func (*Aliyun) AudioSpeech ¶
func (*Aliyun) AudioTranscriptions ¶
func (a *Aliyun) AudioTranscriptions(ctx context.Context, request model.AudioRequest) (response model.AudioResponse, err error)
func (*Aliyun) BatchCancel ¶
func (a *Aliyun) BatchCancel(ctx context.Context, request model.BatchCancelRequest) (response model.BatchResponse, err error)
func (*Aliyun) BatchCreate ¶
func (a *Aliyun) BatchCreate(ctx context.Context, request model.BatchCreateRequest) (response model.BatchResponse, err error)
func (*Aliyun) BatchList ¶
func (a *Aliyun) BatchList(ctx context.Context, request model.BatchListRequest) (response model.BatchListResponse, err error)
func (*Aliyun) BatchRetrieve ¶
func (a *Aliyun) BatchRetrieve(ctx context.Context, request model.BatchRetrieveRequest) (response model.BatchResponse, err error)
func (*Aliyun) ChatCompletions ¶
func (*Aliyun) ChatCompletionsStream ¶
func (*Aliyun) ConvAudioSpeechRequest ¶
func (*Aliyun) ConvAudioSpeechResponse ¶
func (*Aliyun) ConvAudioTranscriptionsRequest ¶
func (*Aliyun) ConvAudioTranscriptionsResponse ¶
func (*Aliyun) ConvBatchCreateRequest ¶
func (*Aliyun) ConvBatchListResponse ¶
func (*Aliyun) ConvBatchResponse ¶
func (*Aliyun) ConvChatCompletionsRequest ¶
func (*Aliyun) ConvChatCompletionsRequestOfficial ¶
func (*Aliyun) ConvChatCompletionsResponse ¶
func (*Aliyun) ConvChatCompletionsResponseOfficial ¶
func (*Aliyun) ConvChatCompletionsStreamResponse ¶
func (*Aliyun) ConvChatCompletionsStreamResponseOfficial ¶
func (*Aliyun) ConvChatResponsesRequest ¶
func (*Aliyun) ConvChatResponsesResponse ¶
func (*Aliyun) ConvChatResponsesStreamResponse ¶
func (*Aliyun) ConvFileContentResponse ¶
func (*Aliyun) ConvFileListResponse ¶
func (*Aliyun) ConvFileResponse ¶
func (*Aliyun) ConvFileUploadRequest ¶
func (*Aliyun) ConvImageEditsRequest ¶
func (*Aliyun) ConvImageEditsRequestOfficial ¶
func (*Aliyun) ConvImageEditsResponse ¶
func (*Aliyun) ConvImageEditsResponseOfficial ¶
func (*Aliyun) ConvImageGenerationsRequest ¶
func (*Aliyun) ConvImageGenerationsRequestOfficial ¶
func (*Aliyun) ConvImageGenerationsResponse ¶
func (*Aliyun) ConvImageGenerationsResponseOfficial ¶
func (*Aliyun) ConvTextEmbeddingsRequest ¶
func (*Aliyun) ConvTextEmbeddingsResponse ¶
func (*Aliyun) ConvVideoContentResponse ¶
func (*Aliyun) ConvVideoCreateRequest ¶
func (*Aliyun) ConvVideoJobResponse ¶
func (*Aliyun) ConvVideoListResponse ¶
func (*Aliyun) FileContent ¶
func (a *Aliyun) FileContent(ctx context.Context, request model.FileContentRequest) (response model.FileContentResponse, err error)
func (*Aliyun) FileDelete ¶
func (a *Aliyun) FileDelete(ctx context.Context, request model.FileDeleteRequest) (response model.FileResponse, err error)
func (*Aliyun) FileList ¶
func (a *Aliyun) FileList(ctx context.Context, request model.FileListRequest) (response model.FileListResponse, err error)
func (*Aliyun) FileRetrieve ¶
func (a *Aliyun) FileRetrieve(ctx context.Context, request model.FileRetrieveRequest) (response model.FileResponse, err error)
func (*Aliyun) FileUpload ¶
func (a *Aliyun) FileUpload(ctx context.Context, request model.FileUploadRequest) (response model.FileResponse, err error)
func (*Aliyun) ImageEdits ¶
func (a *Aliyun) ImageEdits(ctx context.Context, request model.ImageEditRequest) (response model.ImageResponse, err error)
func (*Aliyun) ImageGenerations ¶
func (*Aliyun) TextEmbeddings ¶
func (*Aliyun) VideoContent ¶
func (a *Aliyun) VideoContent(ctx context.Context, request model.VideoContentRequest) (response model.VideoContentResponse, err error)
func (*Aliyun) VideoCreate ¶
func (a *Aliyun) VideoCreate(ctx context.Context, request model.VideoCreateRequest) (response model.VideoJobResponse, err error)
func (*Aliyun) VideoDelete ¶
func (a *Aliyun) VideoDelete(ctx context.Context, request model.VideoDeleteRequest) (response model.VideoJobResponse, err error)
func (*Aliyun) VideoList ¶
func (a *Aliyun) VideoList(ctx context.Context, request model.VideoListRequest) (response model.VideoListResponse, err error)
func (*Aliyun) VideoRemix ¶
func (a *Aliyun) VideoRemix(ctx context.Context, request model.VideoRemixRequest) (response model.VideoJobResponse, err error)
func (*Aliyun) VideoRetrieve ¶
func (a *Aliyun) VideoRetrieve(ctx context.Context, request model.VideoRetrieveRequest) (response model.VideoJobResponse, err error)
Click to show internal directories.
Click to hide internal directories.