google

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 (g *Google) AudioSpeech(ctx context.Context, data []byte) (response model.SpeechResponse, err error)

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 (g *Google) ChatCompletions(ctx context.Context, data any) (response model.ChatCompletionResponse, err error)

func (*Google) ChatCompletionsOfficial

func (g *Google) ChatCompletionsOfficial(ctx context.Context, data []byte) (response any, err error)

func (*Google) ChatCompletionsStream

func (g *Google) ChatCompletionsStream(ctx context.Context, data any) (responseChan chan *model.ChatCompletionResponse, err error)

func (*Google) ChatCompletionsStreamOfficial

func (g *Google) ChatCompletionsStreamOfficial(ctx context.Context, data []byte) (responseChan chan any, err error)

func (*Google) ConvAudioSpeechRequest

func (g *Google) ConvAudioSpeechRequest(ctx context.Context, data []byte) (request model.SpeechRequest, err error)

func (*Google) ConvAudioSpeechResponse

func (g *Google) ConvAudioSpeechResponse(ctx context.Context, data []byte) (response model.SpeechResponse, err error)

func (*Google) ConvAudioTranscriptionsRequest

func (g *Google) ConvAudioTranscriptionsRequest(ctx context.Context, request model.AudioRequest) (data *bytes.Buffer, err error)

func (*Google) ConvAudioTranscriptionsResponse

func (g *Google) ConvAudioTranscriptionsResponse(ctx context.Context, data []byte) (response model.AudioResponse, err error)

func (*Google) ConvBatchCreateRequest

func (g *Google) ConvBatchCreateRequest(ctx context.Context, request model.BatchCreateRequest) (data *bytes.Buffer, err error)

func (*Google) ConvBatchListResponse

func (g *Google) ConvBatchListResponse(ctx context.Context, data []byte) (response model.BatchListResponse, err error)

func (*Google) ConvBatchResponse

func (g *Google) ConvBatchResponse(ctx context.Context, data []byte) (response model.BatchResponse, err error)

func (*Google) ConvChatCompletionsRequest

func (g *Google) ConvChatCompletionsRequest(ctx context.Context, data any) (request model.ChatCompletionRequest, err error)

func (*Google) ConvChatCompletionsRequestOfficial

func (g *Google) ConvChatCompletionsRequestOfficial(ctx context.Context, request model.ChatCompletionRequest) ([]byte, error)

func (*Google) ConvChatCompletionsResponse

func (g *Google) ConvChatCompletionsResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)

func (*Google) ConvChatCompletionsResponseOfficial

func (g *Google) ConvChatCompletionsResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)

func (*Google) ConvChatCompletionsStreamResponse

func (g *Google) ConvChatCompletionsStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)

func (*Google) ConvChatCompletionsStreamResponseOfficial

func (g *Google) ConvChatCompletionsStreamResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)

func (*Google) ConvChatResponsesRequest

func (g *Google) ConvChatResponsesRequest(ctx context.Context, data []byte) (request model.ChatCompletionRequest, err error)

func (*Google) ConvChatResponsesResponse

func (g *Google) ConvChatResponsesResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)

func (*Google) ConvChatResponsesStreamResponse

func (g *Google) ConvChatResponsesStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)

func (*Google) ConvFileContentResponse

func (g *Google) ConvFileContentResponse(ctx context.Context, data []byte) (response model.FileContentResponse, err error)

func (*Google) ConvFileListResponse

func (g *Google) ConvFileListResponse(ctx context.Context, data []byte) (response model.FileListResponse, err error)

func (*Google) ConvFileResponse

func (g *Google) ConvFileResponse(ctx context.Context, data []byte) (response model.FileResponse, err error)

func (*Google) ConvFileUploadRequest

func (g *Google) ConvFileUploadRequest(ctx context.Context, request model.FileUploadRequest) (data *bytes.Buffer, err error)

func (*Google) ConvImageEditsRequest

func (g *Google) ConvImageEditsRequest(ctx context.Context, request model.ImageEditRequest) (data *bytes.Buffer, err error)

func (*Google) ConvImageEditsRequestOfficial

func (g *Google) ConvImageEditsRequestOfficial(ctx context.Context, request model.ImageEditRequest) ([]byte, error)

func (*Google) ConvImageEditsResponse

func (g *Google) ConvImageEditsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)

func (*Google) ConvImageEditsResponseOfficial

func (g *Google) ConvImageEditsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)

func (*Google) ConvImageGenerationsRequest

func (g *Google) ConvImageGenerationsRequest(ctx context.Context, data []byte) (request model.ImageGenerationRequest, err error)

func (*Google) ConvImageGenerationsRequestOfficial

func (g *Google) ConvImageGenerationsRequestOfficial(ctx context.Context, request model.ImageGenerationRequest) ([]byte, error)

func (*Google) ConvImageGenerationsResponse

func (g *Google) ConvImageGenerationsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)

func (*Google) ConvImageGenerationsResponseOfficial

func (g *Google) ConvImageGenerationsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)

func (*Google) ConvTextEmbeddingsRequest

func (g *Google) ConvTextEmbeddingsRequest(ctx context.Context, data []byte) (request model.EmbeddingRequest, err error)

func (*Google) ConvTextEmbeddingsResponse

func (g *Google) ConvTextEmbeddingsResponse(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)

func (*Google) ConvVideoContentResponse

func (g *Google) ConvVideoContentResponse(ctx context.Context, data []byte) (response model.VideoContentResponse, err error)

func (*Google) ConvVideoCreateRequest

func (g *Google) ConvVideoCreateRequest(ctx context.Context, request model.VideoCreateRequest) (data *bytes.Buffer, err error)

func (*Google) ConvVideoJobResponse

func (g *Google) ConvVideoJobResponse(ctx context.Context, data []byte) (response model.VideoJobResponse, err error)

func (*Google) ConvVideoListResponse

func (g *Google) ConvVideoListResponse(ctx context.Context, data []byte) (response model.VideoListResponse, err error)

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 (g *Google) ImageGenerations(ctx context.Context, data []byte) (response model.ImageResponse, err error)

func (*Google) TextEmbeddings

func (g *Google) TextEmbeddings(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)

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 (g *Google) VideoCreateOfficial(ctx context.Context, data []byte) (responseBytes []byte, err error)

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 (g *Google) VideoDeleteOfficial(ctx context.Context, taskId string) (err error)

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 (g *Google) VideoListOfficial(ctx context.Context, params model.VolcVideoListReq) (responseBytes []byte, err error)

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)

func (*Google) VideoRetrieveOfficial added in v2.3.0

func (g *Google) VideoRetrieveOfficial(ctx context.Context, taskId string) (responseBytes []byte, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL