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