do workers stay online after a request is made to handle further requests or do they get shutdown in
do workers stay online after a request is made to handle further requests or do they get shutdown instantly?
{"errors":[{"message":"AiError: AiError: Unknown internal error","code":3028}],"success":false,"result":{},"messages":[]} . The example from the docs doesn't work either https://developers.cloudflare.com/workers-ai/fine-tunes/public-loras/ . Tried the cURL command using my token, same error. Saw a few messages related to this before, but seems like there aren't any solution yet.
large-v2 while speeds are on par with base :lul: "message": "5006: must be string, 'audio' must be array, must match exactly one schema in oneOf" despite you saying it's a base64 string lol"cyberpunk cat" is marked nsfwflex-1-schnell to have height/width optionsAI processing failed: ${error.message},@cf/qwen/qwen1.5-14b-chat-awq returning blank responsesconst tool_response = await env.AI.run(
"@hf/nousresearch/hermes-2-pro-mistral-7b",
{
messages: [
{ role: "user", content: query },
],
temperature: 0.2,
tools: [
{
type: "function",
function: {
name: "get-weather",
description: "Gets weather information of a particular city",
parameters: {
type: "object",
properties: {
city: {
type: "string",
description: "The city name",
},
country: {
type: "string",
description: "The country name",
}
},
required: ["city"],
}
}
},
{
type: "function",
function: {
name: "search-google",
description: "Gets general data from Google",
parameters: {
type: "object",
properties: {
keyword: {
type: "string",
description: "The keywords for searching",
},
},
required: ["keyword"],
}
}
},
],
}
);
const selected_tool = tool_response?.tool_calls?.[0];
console.log({ selected_tool }); selected_tool: {
arguments: { from_currency: 'USD', to_currency: 'CNY' },
name: 'get-currency-exchange-rate'
}AI processing failed: ${error.message}@cf/qwen/qwen1.5-14b-chat-awq"result":{"response":""},"success":true,"errors":[],"messages":[]}
{"result":{"response":""},"success":true,"errors":[],"messages":[]}
{"result":{"response":""},"success":true,"errors":[],"messages":[]}
{"result":{"response":""},"success":true,"errors":[],"messages":[]}
{"result":{"response":""},"success":true,"errors":[],"messages":[]}