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