Documentation
¶
Index ¶
- type DeepSeek
- func (d *DeepSeek) AudioSpeech(ctx context.Context, data []byte) (response model.SpeechResponse, err error)
- func (d *DeepSeek) AudioTranscriptions(ctx context.Context, request model.AudioRequest) (response model.AudioResponse, err error)
- func (d *DeepSeek) BatchCancel(ctx context.Context, request model.BatchCancelRequest) (response model.BatchResponse, err error)
- func (d *DeepSeek) BatchCreate(ctx context.Context, request model.BatchCreateRequest) (response model.BatchResponse, err error)
- func (d *DeepSeek) BatchList(ctx context.Context, request model.BatchListRequest) (response model.BatchListResponse, err error)
- func (d *DeepSeek) BatchRetrieve(ctx context.Context, request model.BatchRetrieveRequest) (response model.BatchResponse, err error)
- func (d *DeepSeek) ChatCompletions(ctx context.Context, data any) (response model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ChatCompletionsStream(ctx context.Context, data any) (responseChan chan *model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ConvAudioSpeechRequest(ctx context.Context, data []byte) (request model.SpeechRequest, err error)
- func (d *DeepSeek) ConvAudioSpeechResponse(ctx context.Context, data []byte) (response model.SpeechResponse, err error)
- func (d *DeepSeek) ConvAudioTranscriptionsRequest(ctx context.Context, request model.AudioRequest) (data *bytes.Buffer, err error)
- func (d *DeepSeek) ConvAudioTranscriptionsResponse(ctx context.Context, data []byte) (response model.AudioResponse, err error)
- func (d *DeepSeek) ConvBatchCreateRequest(ctx context.Context, request model.BatchCreateRequest) (data *bytes.Buffer, err error)
- func (d *DeepSeek) ConvBatchListResponse(ctx context.Context, data []byte) (response model.BatchListResponse, err error)
- func (d *DeepSeek) ConvBatchResponse(ctx context.Context, data []byte) (response model.BatchResponse, err error)
- func (d *DeepSeek) ConvChatCompletionsRequest(ctx context.Context, data any) (request model.ChatCompletionRequest, err error)
- func (d *DeepSeek) ConvChatCompletionsRequestOfficial(ctx context.Context, request model.ChatCompletionRequest) ([]byte, error)
- func (d *DeepSeek) ConvChatCompletionsResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ConvChatCompletionsResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)
- func (d *DeepSeek) ConvChatCompletionsStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ConvChatCompletionsStreamResponseOfficial(ctx context.Context, response model.ChatCompletionResponse) ([]byte, error)
- func (d *DeepSeek) ConvChatResponsesRequest(ctx context.Context, data []byte) (request model.ChatCompletionRequest, err error)
- func (d *DeepSeek) ConvChatResponsesResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ConvChatResponsesStreamResponse(ctx context.Context, data []byte) (response model.ChatCompletionResponse, err error)
- func (d *DeepSeek) ConvFileContentResponse(ctx context.Context, data []byte) (response model.FileContentResponse, err error)
- func (d *DeepSeek) ConvFileListResponse(ctx context.Context, data []byte) (response model.FileListResponse, err error)
- func (d *DeepSeek) ConvFileResponse(ctx context.Context, data []byte) (response model.FileResponse, err error)
- func (d *DeepSeek) ConvFileUploadRequest(ctx context.Context, request model.FileUploadRequest) (data *bytes.Buffer, err error)
- func (d *DeepSeek) ConvImageEditsRequest(ctx context.Context, request model.ImageEditRequest) (data *bytes.Buffer, err error)
- func (d *DeepSeek) ConvImageEditsRequestOfficial(ctx context.Context, request model.ImageEditRequest) ([]byte, error)
- func (d *DeepSeek) ConvImageEditsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (d *DeepSeek) ConvImageEditsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)
- func (d *DeepSeek) ConvImageGenerationsRequest(ctx context.Context, data []byte) (request model.ImageGenerationRequest, err error)
- func (d *DeepSeek) ConvImageGenerationsRequestOfficial(ctx context.Context, request model.ImageGenerationRequest) ([]byte, error)
- func (d *DeepSeek) ConvImageGenerationsResponse(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (d *DeepSeek) ConvImageGenerationsResponseOfficial(ctx context.Context, response model.ImageResponse) ([]byte, error)
- func (d *DeepSeek) ConvTextEmbeddingsRequest(ctx context.Context, data []byte) (request model.EmbeddingRequest, err error)
- func (d *DeepSeek) ConvTextEmbeddingsResponse(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)
- func (d *DeepSeek) ConvVideoContentResponse(ctx context.Context, data []byte) (response model.VideoContentResponse, err error)
- func (d *DeepSeek) ConvVideoCreateRequest(ctx context.Context, request model.VideoCreateRequest) (data *bytes.Buffer, err error)
- func (d *DeepSeek) ConvVideoJobResponse(ctx context.Context, data []byte) (response model.VideoJobResponse, err error)
- func (d *DeepSeek) ConvVideoListResponse(ctx context.Context, data []byte) (response model.VideoListResponse, err error)
- func (d *DeepSeek) FileContent(ctx context.Context, request model.FileContentRequest) (response model.FileContentResponse, err error)
- func (d *DeepSeek) FileDelete(ctx context.Context, request model.FileDeleteRequest) (response model.FileResponse, err error)
- func (d *DeepSeek) FileList(ctx context.Context, request model.FileListRequest) (response model.FileListResponse, err error)
- func (d *DeepSeek) FileRetrieve(ctx context.Context, request model.FileRetrieveRequest) (response model.FileResponse, err error)
- func (d *DeepSeek) FileUpload(ctx context.Context, request model.FileUploadRequest) (response model.FileResponse, err error)
- func (d *DeepSeek) ImageEdits(ctx context.Context, request model.ImageEditRequest) (response model.ImageResponse, err error)
- func (d *DeepSeek) ImageGenerations(ctx context.Context, data []byte) (response model.ImageResponse, err error)
- func (d *DeepSeek) TextEmbeddings(ctx context.Context, data []byte) (response model.EmbeddingResponse, err error)
- func (d *DeepSeek) VideoContent(ctx context.Context, request model.VideoContentRequest) (response model.VideoContentResponse, err error)
- func (d *DeepSeek) VideoCreate(ctx context.Context, request model.VideoCreateRequest) (response model.VideoJobResponse, err error)
- func (d *DeepSeek) VideoDelete(ctx context.Context, request model.VideoDeleteRequest) (response model.VideoJobResponse, err error)
- func (d *DeepSeek) VideoList(ctx context.Context, request model.VideoListRequest) (response model.VideoListResponse, err error)
- func (d *DeepSeek) VideoRemix(ctx context.Context, request model.VideoRemixRequest) (response model.VideoJobResponse, err error)
- func (d *DeepSeek) 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 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 (*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 (*DeepSeek) ChatCompletionsStream ¶
func (*DeepSeek) ConvAudioSpeechRequest ¶
func (*DeepSeek) ConvAudioSpeechResponse ¶
func (*DeepSeek) ConvAudioTranscriptionsRequest ¶
func (*DeepSeek) ConvAudioTranscriptionsResponse ¶
func (*DeepSeek) ConvBatchCreateRequest ¶
func (*DeepSeek) ConvBatchListResponse ¶
func (*DeepSeek) ConvBatchResponse ¶
func (*DeepSeek) ConvChatCompletionsRequest ¶
func (*DeepSeek) ConvChatCompletionsRequestOfficial ¶
func (*DeepSeek) ConvChatCompletionsResponse ¶
func (*DeepSeek) ConvChatCompletionsResponseOfficial ¶
func (*DeepSeek) ConvChatCompletionsStreamResponse ¶
func (*DeepSeek) ConvChatCompletionsStreamResponseOfficial ¶
func (*DeepSeek) ConvChatResponsesRequest ¶
func (*DeepSeek) ConvChatResponsesResponse ¶
func (*DeepSeek) ConvChatResponsesStreamResponse ¶
func (*DeepSeek) ConvFileContentResponse ¶
func (*DeepSeek) ConvFileListResponse ¶
func (*DeepSeek) ConvFileResponse ¶
func (*DeepSeek) ConvFileUploadRequest ¶
func (*DeepSeek) ConvImageEditsRequest ¶
func (*DeepSeek) ConvImageEditsRequestOfficial ¶
func (*DeepSeek) ConvImageEditsResponse ¶
func (*DeepSeek) ConvImageEditsResponseOfficial ¶
func (*DeepSeek) ConvImageGenerationsRequest ¶
func (*DeepSeek) ConvImageGenerationsRequestOfficial ¶
func (*DeepSeek) ConvImageGenerationsResponse ¶
func (*DeepSeek) ConvImageGenerationsResponseOfficial ¶
func (*DeepSeek) ConvTextEmbeddingsRequest ¶
func (*DeepSeek) ConvTextEmbeddingsResponse ¶
func (*DeepSeek) ConvVideoContentResponse ¶
func (*DeepSeek) ConvVideoCreateRequest ¶
func (*DeepSeek) ConvVideoJobResponse ¶
func (*DeepSeek) ConvVideoListResponse ¶
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 (*DeepSeek) TextEmbeddings ¶
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)
Click to show internal directories.
Click to hide internal directories.