Improves completion api with new input parameters for LLMs #398
Annotations
4 errors
drivers/test/embeddings.test.ts > Bedrock: embeddings generation > embeddings for text:
drivers/src/bedrock/index.ts#L595
ValidationException: Malformed input request: required key [inputText] not found, please reformat your input and try again.
❯ de_ValidationExceptionRes node_modules/.pnpm/@AWS-SDK+client-bedrock-runtime@3.635.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1195:21
❯ de_CommandError node_modules/.pnpm/@AWS-SDK+client-bedrock-runtime@3.635.0/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js:1028:19
❯ node_modules/.pnpm/@smithy+middleware-serde@3.0.6/node_modules/@smithy/middleware-serde/dist-cjs/index.js:35:20
❯ node_modules/.pnpm/@smithy+core@2.4.3/node_modules/@smithy/core/dist-cjs/index.js:165:18
❯ node_modules/.pnpm/@smithy+middleware-retry@3.0.18/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38
❯ node_modules/.pnpm/@AWS-SDK+middleware-logger@3.609.0/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22
❯ BedrockDriver.generateEmbeddings drivers/src/bedrock/index.ts:595:21
❯ drivers/test/embeddings.test.ts:47:19
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { '$fault': 'client', '$metadata': { httpStatusCode: 400, requestId: 'e2890b95-bc3d-45f7-96ea-9075db9194a2', extendedRequestId: undefined, cfId: undefined, attempts: 1, totalRetryDelay: +0 }, '$response': { statusCode: 400, reason: 'Bad Request', headers: { date: 'Tue, 05 Nov 2024 14:50:09 GMT', 'content-type': 'application/json', 'content-length': '116', connection: 'keep-alive', 'x-amzn-requestid': 'e2890b95-bc3d-45f7-96ea-9075db9194a2', 'x-amzn-errortype': 'ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/' }, body: { _events: { close: undefined, error: 'Function<anonymous>', data: undefined, end: 'Function<responseOnEnd>', readable: undefined }, _readableState: { highWaterMark: 65536, buffer: [], bufferIndex: +0, length: +0, pipes: [], awaitDrainWriters: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: true, dataEmitted: true, errored: null, defaultEncoding: 'utf8', decoder: null, encoding: null, flowing: false, pipesCount: +0, paused: true }, _maxListeners: undefined, socket: null, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'Date', 'Tue, 05 Nov 2024 14:50:09 GMT', 'Content-Type', 'application/json', 'Content-Length', '116', 'Connection', 'keep-alive', 'x-amzn-RequestId', 'e2890b95-bc3d-45f7-96ea-9075db9194a2', 'x-amzn-ErrorType', 'ValidationException:http://internal.amazon.com/coral/com.amazon.bedrock/' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 400, statusMessage: 'Bad Request', client: { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: { context: { init: 'Function<init>', setKey: 'Function<setKey>', setCert: 'Function<setCert>', addCACert: 'Function<addCACert>', setAllowPartialTrustChain: 'Function<setAllowPartialTrustChain>', addCRL: 'Function<addCRL>', addRootCerts: 'Function<addRootCerts>', setCipherSuites: 'Function<setCipherSuites>', setCiphers: 'Function<setCiphers>', setSigalgs: 'Function<setSigalgs>', setECDHCurve: 'Function<setECDHCurve>', setDHParam: 'Function<setDHParam>', setMaxProto: 'Function<setMaxProto>', setMinProto: 'Function<setMinProto>', getMaxProto: 'Function<getMaxProto>', getMinProto: 'Function<getMinProto>', setOptions: 'Function<setOptions>', setSessionIdContext: 'Function<setSessionIdContext>', setSessionTimeout: 'Function<setSessionTimeout>', close: 'Function<close>', loadPKCS12: 'Function<loadPKCS12>', setTicketKeys: 'Function<setTicketKeys>', enableTicketKeyCallback: 'Function<enableTicketKeyCallback>', getTicketKeys: 'Function<getTicketKeys>', getCertificate: 'Function<getCertificate>', getIssuer: 'Function<getIssuer>', setEngineKey: 'Function<setEngineKey>', setClientCe
|
drivers/test/embeddings.test.ts > OpenAI: embeddings generation > embeddings for text:
drivers/src/openai/index.ts#L263
Error: No text provided
❯ OpenAIDriver.generateEmbeddings drivers/src/openai/index.ts:263:19
❯ drivers/test/embeddings.test.ts:56:32
|
drivers/test/embeddings.test.ts > MistralAI: embeddings generation > embeddings for text:
drivers/src/mistral/index.ts#L142
Error: [object Object]
❯ node_modules/.pnpm/api-fetch-client@0.13.0/node_modules/api-fetch-client/src/base.ts:153:37
❯ MistralAIDriver.generateEmbeddings drivers/src/mistral/index.ts:142:19
❯ drivers/test/embeddings.test.ts:65:19
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { request: { constructor: 'Function<Request>', method: 'POST', url: 'https://api.mistral.ai/v1/embeddings', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, destination: '', referrer: 'about:client', referrerPolicy: '', mode: 'cors', credentials: 'same-origin', cache: 'default', redirect: 'follow', integrity: '', keepalive: false, isReloadNavigation: false, isHistoryNavigation: false, signal: { constructor: 'Function<AbortSignal>', aborted: false, reason: undefined, throwIfAborted: 'Function<throwIfAborted>', onabort: null, addEventListener: 'Function<addEventListener>', removeEventListener: 'Function<removeEventListener>', dispatchEvent: 'Function<dispatchEvent>' }, body: { constructor: 'Function<ReadableStream>', locked: false, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, duplex: 'half', clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>', bytes: 'Function<bytes>', attribute: undefined }, status: 422, payload: { object: 'error', message: { detail: [ { type: 'string_type', loc: [ 'body', 'input', 'str' ], msg: 'Input should be a valid string', input: [ null ], url: 'https://errors.pydantic.dev/2.5/v/string_type' }, { type: 'string_type', loc: [ 'body', 'input', 'list[str]', +0 ], msg: 'Input should be a valid string', input: null, url: 'https://errors.pydantic.dev/2.5/v/string_type' } ] }, type: 'invalid_request_error', param: null, code: null }, details: 'POST https://api.mistral.ai/v1/embeddings => 422' }
|
test
Process completed with exit code 1.
|