common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCorpCode added in v0.3.0

func GetCorpCode(ctx context.Context, corpId string) string

func IsAborted added in v0.3.0

func IsAborted(err error) bool

func IsMaxRetry added in v0.3.0

func IsMaxRetry(isEnableModelAgent bool, agentTotal, keyTotal, retry int) bool

func IsNeedRetry added in v0.3.0

func IsNeedRetry(err error) (isRetry bool, isDisabled bool)

func New

func New() service.ICommon

func NewClient added in v0.3.0

func NewClient(ctx context.Context, model *model.Model, key, baseURL, path string) (sdk.Chat, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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