baidubce

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 15 Imported by: 1

Documentation

Index

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 New

func New(opts ...Option) (*Client, error)

func (Client) Balance

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

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 (*Client) Token

Token 获取AccessToken

func (Client) Txt2ImgV2

type Option

type Option func(*Client) error

func WithBaseUrl

func WithBaseUrl(url string) Option

func WithToken

func WithToken(token string) Option

func WithTokenRequest

func WithTokenRequest(in *baidubcev1.TokenRequest) Option

Jump to

Keyboard shortcuts

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