errors

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTooManyEmptyStreamMessages       = errors.New("stream has sent too many empty messages")
	ErrChatCompletionInvalidModel       = errors.New("this model is not supported with this method, please use CreateCompletion client method instead")
	ErrChatCompletionStreamNotSupported = errors.New("streaming is not supported with this method, please use CreateChatCompletionStream")
	ErrFailedToUnmarshalJSON            = errors.New("failed to unmarshal json response")
	ErrAPIKeyIsEmpty                    = errors.New("api key is empty")
	ErrFileIsInvalidFormat              = errors.New("file format is invalid, please create jsonl file and check training example: https://platform.openai.com/docs/guides/fine-tuning/prepare-training-data")
)

Functions

func New

func New(httpCode int, providerCode string, message string, messageType string, param any) *entity.ErrorResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

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