Huggingface.js documentation

الفئة: InferenceClientProviderOutputError

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

الفئة: InferenceClientProviderOutputError

تُطرح عندما تكون مخرجات الاستدلال التي يعيدها المزوّد غير صالحة / لا تتطابق مع التوقعات

التسلسل الهرمي

دوال الإنشاء

constructor

• new InferenceClientProviderOutputError(message): InferenceClientProviderOutputError

المعاملات

الاسمالنوع
messagestring

يعيد

InferenceClientProviderOutputError

التجاوزات

InferenceClientError.constructor

معرّف في

inference/src/errors.ts:85

الخصائص

السبب

• السبب Optional: unknown

موروث من

InferenceClientError.cause

معرّف في

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26


رسالة

• رسالة: string

موروث من

InferenceClientError.message

معرّف في

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1077


الاسم

• name: string

موروث من

InferenceClientError.name

معرّف في

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1076


مكدس

• stack Optional: string

موروث من

InferenceClientError.stack

معرّف في

doc-internal/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts:1078


prepareStackTrace

▪ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

تجاوز اختياري لتنسيق آثار المكدس

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

إعلان النوع

▸ (err, stackTraces): any

المعاملات
الاسمالنوع
errError
stackTracesCallSite[]
يعيد

any

موروث من

InferenceClientError.prepareStackTrace

معرّف في

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:11


stackTraceLimit

▪ Static stackTraceLimit: number

موروث من

InferenceClientError.stackTraceLimit

معرّف في

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:13

الطرق

captureStackTrace

▸ captureStackTrace(targetObject, constructorOpt?): void

إنشاء خاصية .stack على كائن الهدف

المعاملات

الاسمالنوع
targetObjectobject
constructorOpt?Function

يعيد

void

موروث من

InferenceClientError.captureStackTrace

معرّف في

inference/node_modules/.pnpm/@types+node@18.13.0/node_modules/@types/node/globals.d.ts:4

Update on GitHub