Hey is there a file size limit for toMarkdown? I have tried a few larger files that are failing
Hey is there a file size limit for toMarkdown? I have tried a few larger files that are failing



{"code":10000,"message":"Authentication error"} in the REST response, but do get {"message":"Server Error","code":6001}, anyone seen this error before?bge-base-en-v1.5 (768 dimension) model

messages or promptai/tomarkdown ?max_tokens defaults to 256 tokens, try setting that higher in your request to the model.{"code":10000,"message":"Authentication error"}{"message":"Server Error","code":6001}const answer = await ctx.env.AI.autorag("ats-rag").aiSearch({
query: 'Who is Amaan Khan',
// model: "@cf/meta/llama-3-8b-instruct",
model: "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
rewrite_query: true,
max_num_results: 10,
ranking_options: {
score_threshold: 0.4,
},
stream: true
});
return new Response(answer, {
headers: {
'Content-Type': 'text/event-stream'
}
});"logs": [
{
"message": [
"SyntaxError: Unexpected token 'd', \"data: {\"no\"... is not valid JSON"
],
"level": "error",
"timestamp": 1744242318653
}
]bge-base-en-v1.5promptai/tomarkdown ## Metadata - PDFFormatVersion=1.4 - Language=en-GB - IsLinearized=false - IsAcroFormPresent=false - IsXFAPresent=false - IsCollectionPresent=false - IsSignaturesPresent=false - Creator=Writer - Producer=OpenOffice.org 2.4 - CreationDate=D:20090324113315-06'00'max_tokensconst aiResponse: any = await env.AI.run(
"@cf/mistralai/mistral-small-3.1-24b-instruct",
{
messages: [
{ role: "system", content: "You're a helpful assistant." },
{ role: "assistant", content: prompt }
]
}
);const aiResponse: any = await env.AI.run(
"@cf/mistralai/mistral-small-3.1-24b-instruct",
{
"prompt": prompt
}
);const messages = [
{
role: "system",
content: "You are a helpful assistant that can analyze images."
},
{
role: "user",
content: [
{
type: "text",
text: "What's in this image?"
},
{
type: "image_url",
image_url: {
url: datauri
}
},
... // extra
]
}
];const aiResponse: any = await env.AI.run(
"@cf/mistralai/mistral-small-3.1-24b-instruct",
{
messages: messages
}
);