aiprovider

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnection                      = errors.New("خطا در برقرار ارتباط با سرویس")
	ErrRateLimit                       = errors.New("تعداد درخواست\u200cهای دریافتی زیاد می\u200cباشد، لطفا چند ثانیه دیگر درخواست ارسال نمایید")
	ErrAuthentication                  = errors.New("خطا در احراز هویت")
	ErrTimeout                         = errors.New("خطا در دریافت اطلاعات")
	ErrLoading                         = errors.New("خطا در سرویس هوش مصنوعی")
	ErrSummarizeConversationAPI        = errors.New("خطا در دریافت پاسخ از سرویس هوش مصنوعی، لطفا چند لحظه دیگر دوباره تلاش نمایید")
	ErrSummarizeConversationUnexpected = errors.New("خطا در سرویس هوش مصنوعی")
)

Functions

func CheckError

func CheckError(err error, ctx context.Context) (error, bool)

CheckError checks the error returned from gRPC calls and returns a more user-friendly error message. It returns the error and a boolean indicating whether the error is known or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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