Documentation
¶
Index ¶
- func GetCorpCode(ctx context.Context, corpId string) string
- func IsAborted(err error) bool
- func IsMaxRetry(isEnableModelAgent bool, agentTotal, keyTotal, retry int) bool
- func IsNeedRetry(err error) (isRetry bool, isDisabled bool)
- func New() service.ICommon
- func NewClient(ctx context.Context, model *model.Model, key, baseURL, path string) (sdk.Chat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMaxRetry ¶ added in v0.3.0
func IsNeedRetry ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.