Documentation ¶
Index ¶
- type Client
- func (cli Client) Balance(ctx context.Context, in *ai_customv1.BalanceRequest, opts ...grpc.CallOption) (*ai_customv1.BalanceResponse, error)
- func (cli Client) ChatCompletions(ctx context.Context, in *ai_customv1.ChatCompletionsRequest, ...) (*ai_customv1.ChatResponse, error)
- func (cli Client) ChatCompletionsStream(ctx context.Context, in *ai_customv1.ChatCompletionsRequest, ...) (ai_customv1.WenxinworkshopService_ChatCompletionsStreamClient, error)
- func (cli Client) ChatEbInstant(ctx context.Context, in *ai_customv1.ChatEbInstantRequest, ...) (*ai_customv1.ChatResponse, error)
- func (cli Client) GetImgV2(ctx context.Context, in *ernievilgv1.GetImgV2Request, opts ...grpc.CallOption) (*ernievilgv1.GetImgV2Response, error)
- func (cli *Client) Token(ctx context.Context, in *baidubcev1.TokenRequest) (*baidubcev1.TokenResponse, error)
- func (cli Client) Txt2ImgV2(ctx context.Context, in *ernievilgv1.Txt2ImgV2Request, opts ...grpc.CallOption) (*ernievilgv1.Txt2ImgV2Response, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Balance ¶
func (cli Client) Balance( ctx context.Context, in *ai_customv1.BalanceRequest, opts ...grpc.CallOption, ) (*ai_customv1.BalanceResponse, error)
Balance
func (Client) ChatCompletions ¶
func (cli Client) ChatCompletions( ctx context.Context, in *ai_customv1.ChatCompletionsRequest, opts ...grpc.CallOption, ) (*ai_customv1.ChatResponse, error)
ChatCompletions 文心一言云服务
func (Client) ChatCompletionsStream ¶
func (cli Client) ChatCompletionsStream( ctx context.Context, in *ai_customv1.ChatCompletionsRequest, opts ...grpc.CallOption, ) (ai_customv1.WenxinworkshopService_ChatCompletionsStreamClient, error)
ChatCompletions 文心一言云服务 流
func (Client) ChatEbInstant ¶
func (cli Client) ChatEbInstant( ctx context.Context, in *ai_customv1.ChatEbInstantRequest, opts ...grpc.CallOption, ) (*ai_customv1.ChatResponse, error)
ChatEbInstant ErnieBot-Lite
func (Client) GetImgV2 ¶
func (cli Client) GetImgV2(ctx context.Context, in *ernievilgv1.GetImgV2Request, opts ...grpc.CallOption) (*ernievilgv1.GetImgV2Response, error)
func (*Client) Token ¶
func (cli *Client) Token(ctx context.Context, in *baidubcev1.TokenRequest) (*baidubcev1.TokenResponse, error)
Token 获取AccessToken
func (Client) Txt2ImgV2 ¶
func (cli Client) Txt2ImgV2(ctx context.Context, in *ernievilgv1.Txt2ImgV2Request, opts ...grpc.CallOption) (*ernievilgv1.Txt2ImgV2Response, error)
type Option ¶
func WithBaseUrl ¶
func WithTokenRequest ¶
func WithTokenRequest(in *baidubcev1.TokenRequest) Option
Click to show internal directories.
Click to hide internal directories.