deepseek

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeepSeek

type DeepSeek struct {
	*options.AdapterOptions
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(ctx context.Context, options *options.AdapterOptions) *DeepSeek

func NewAdapterBaidu

func NewAdapterBaidu(ctx context.Context, options *options.AdapterOptions) *DeepSeek

func (*DeepSeek) AudioSpeech

func (d *DeepSeek) AudioSpeech(ctx context.Context, data []byte) (response model.SpeechResponse, err error)

func (*DeepSeek) AudioTranscriptions

func (d *DeepSeek) AudioTranscriptions(ctx context.Context, request model.AudioRequest) (response model.AudioResponse, err error)

func (*DeepSeek) BatchCancel

func (d *DeepSeek) BatchCancel(ctx context.Context, request model.BatchCancelRequest) (response model.BatchResponse, err error)

func (*DeepSeek) BatchCreate

func (d *DeepSeek) BatchCreate(ctx context.Context, request model.BatchCreateRequest) (response model.BatchResponse, err error)

func (*DeepSeek) BatchList

func (d *DeepSeek) BatchList(ctx context.Context, request model.BatchListRequest) (response model.BatchListResponse, err error)

func (*DeepSeek) BatchRetrieve

func (d *DeepSeek) BatchRetrieve(ctx context.Context, request model.BatchRetrieveRequest) (response model.BatchResponse, err error)

func (*DeepSeek) ChatCompletions

func (d *DeepSeek) ChatCompletions(ctx context.Context, data any) (response model.ChatCompletionResponse, err error)

func (*DeepSeek) ChatCompletionsStream

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

func (*DeepSeek) ConvAudioSpeechRequest

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

func (*DeepSeek) ConvAudioSpeechResponse

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

func (*DeepSeek) ConvAudioTranscriptionsRequest

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

func (*DeepSeek) ConvAudioTranscriptionsResponse

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

func (*DeepSeek) ConvBatchCreateRequest

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

func (*DeepSeek) ConvBatchListResponse

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

func (*DeepSeek) ConvBatchResponse

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

func (*DeepSeek) ConvChatCompletionsRequest

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

func (*DeepSeek) ConvChatCompletionsRequestOfficial

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

func (*DeepSeek) ConvChatCompletionsResponse

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

func (*DeepSeek) ConvChatCompletionsResponseOfficial

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

func (*DeepSeek) ConvChatCompletionsStreamResponse

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

func (*DeepSeek) ConvChatCompletionsStreamResponseOfficial

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

func (*DeepSeek) ConvChatResponsesRequest

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

func (*DeepSeek) ConvChatResponsesResponse

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

func (*DeepSeek) ConvChatResponsesStreamResponse

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

func (*DeepSeek) ConvFileContentResponse

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

func (*DeepSeek) ConvFileListResponse

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

func (*DeepSeek) ConvFileResponse

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

func (*DeepSeek) ConvFileUploadRequest

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

func (*DeepSeek) ConvImageEditsRequest

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

func (*DeepSeek) ConvImageEditsRequestOfficial

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

func (*DeepSeek) ConvImageEditsResponse

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

func (*DeepSeek) ConvImageEditsResponseOfficial

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

func (*DeepSeek) ConvImageGenerationsRequest

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

func (*DeepSeek) ConvImageGenerationsRequestOfficial

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

func (*DeepSeek) ConvImageGenerationsResponse

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

func (*DeepSeek) ConvImageGenerationsResponseOfficial

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

func (*DeepSeek) ConvTextEmbeddingsRequest

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

func (*DeepSeek) ConvTextEmbeddingsResponse

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

func (*DeepSeek) ConvVideoContentResponse

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

func (*DeepSeek) ConvVideoCreateRequest

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

func (*DeepSeek) ConvVideoJobResponse

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

func (*DeepSeek) ConvVideoListResponse

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

func (*DeepSeek) FileContent

func (d *DeepSeek) FileContent(ctx context.Context, request model.FileContentRequest) (response model.FileContentResponse, err error)

func (*DeepSeek) FileDelete

func (d *DeepSeek) FileDelete(ctx context.Context, request model.FileDeleteRequest) (response model.FileResponse, err error)

func (*DeepSeek) FileList

func (d *DeepSeek) FileList(ctx context.Context, request model.FileListRequest) (response model.FileListResponse, err error)

func (*DeepSeek) FileRetrieve

func (d *DeepSeek) FileRetrieve(ctx context.Context, request model.FileRetrieveRequest) (response model.FileResponse, err error)

func (*DeepSeek) FileUpload

func (d *DeepSeek) FileUpload(ctx context.Context, request model.FileUploadRequest) (response model.FileResponse, err error)

func (*DeepSeek) ImageEdits

func (d *DeepSeek) ImageEdits(ctx context.Context, request model.ImageEditRequest) (response model.ImageResponse, err error)

func (*DeepSeek) ImageGenerations

func (d *DeepSeek) ImageGenerations(ctx context.Context, data []byte) (response model.ImageResponse, err error)

func (*DeepSeek) TextEmbeddings

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

func (*DeepSeek) VideoContent

func (d *DeepSeek) VideoContent(ctx context.Context, request model.VideoContentRequest) (response model.VideoContentResponse, err error)

func (*DeepSeek) VideoCreate

func (d *DeepSeek) VideoCreate(ctx context.Context, request model.VideoCreateRequest) (response model.VideoJobResponse, err error)

func (*DeepSeek) VideoDelete

func (d *DeepSeek) VideoDelete(ctx context.Context, request model.VideoDeleteRequest) (response model.VideoJobResponse, err error)

func (*DeepSeek) VideoList

func (d *DeepSeek) VideoList(ctx context.Context, request model.VideoListRequest) (response model.VideoListResponse, err error)

func (*DeepSeek) VideoRemix

func (d *DeepSeek) VideoRemix(ctx context.Context, request model.VideoRemixRequest) (response model.VideoJobResponse, err error)

func (*DeepSeek) VideoRetrieve

func (d *DeepSeek) VideoRetrieve(ctx context.Context, request model.VideoRetrieveRequest) (response model.VideoJobResponse, err error)

Jump to

Keyboard shortcuts

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