afaik the active models is just supposed to show the models you are using, and is limited to billed
afaik the active models is just supposed to show the models you are using, and is limited to billed models/non-beta
FILE_PARSE_ERROR with my autotrained finetuneError: no available backend found. ERR: [wasm] RuntimeError: Aborted(both async and sync fetching of the wasm failed) . But the other files (config, onnx) are loading up fine. @Xenova I hope it's still okay to tag you! I'm so excited to get your library up and running!A change to the Workers Runtime must never break an application that is live in production.
env.AI.run() in ctx.passThroughOnException while still saving the result?passThroughOnException works. I just want my worker to respond properly when the models time outpassThroughOnException is more intended for if you have an origin behind the workermax_tokens[wrangler:err] InferenceUpstreamError: AiError: undefined: ERROR 3001: Unknown internal error
at Ai.run (cloudflare-internal:ai-api:66:23)
at async Object.fetch (file:///C:/Users/Fathan/PetProject/cloudflare-demo/src/index.ts:15:21)
at async jsonError (file:///C:/Users/Fathan/PetProject/cloudflare-demo/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody (file:///C:/Users/Fathan/PetProject/cloudflare-demo/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
[wrangler:inf] POST / 500 Internal Server Error (2467ms)FILE_PARSE_ERRORError: no available backend found. ERR: [wasm] RuntimeError: Aborted(both async and sync fetching of the wasm failed)const stream = await retrivalChain.stream({
input: 'what is hello world',
});
return new Response(stream, {
headers: {
'content-type': 'text/event-stream',
'Access-Control-Allow-Origin': '*',
},
});Argument of type 'IterableReadableStream<{ context: Document<Record<string, any>>[]; answer: string; } & { [key: string]: unknown; }>' is not assignable to parameter of type 'BodyInit | null | undefined'.
Type 'IterableReadableStream<{ context: Document<Record<string, any>>[]; answer: string; } & { [key: string]: unknown; }>' is not assignable to type 'ReadableStream<Uint8Array>'.
The types returned by 'getReader()' are incompatible between these types.
Type 'ReadableStreamDefaultReader<{ context: Document<Record<string, any>>[]; answer: string; } & { [key: string]: unknown; }>' is not assignable to type 'ReadableStreamDefaultReader<Uint8Array>'.
Type '{ context: Document<Record<string, any>>[]; answer: string; } & { [key: string]: unknown; }' is missing the following properties from type 'Uint8Array': BYTES_PER_ELEMENT, buffer, byteLength, byteOffset, and 27 more.ts(2345)
const stream: IterableReadableStream<{
context: Document<Record<string, any>>[];
answer: string;
} & {
[key: string]: unknown;
}>env.AI.run()ctx.passThroughOnExceptionpassThroughOnExceptionpassThroughOnExceptionmax_tokenstry {
await env.AI.run(...)
} catch (e) {
return new Response('handle errors here')
}