hi guys is there a way I can add like 80KB worth of text as instructions to the AI -- KV, D1 maybe?
hi guys is there a way I can add like 80KB worth of text as instructions to the AI -- KV, D1 maybe?
llama-3.1-70b-instruct) and, for some reason, I'm currently unable to see in Cloudflare dashboard how much we've been consuming. Any ideas?{"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 optionsllama-3.1-70b-instruct{"errors":[{"message":"AiError: AiError: Unknown internal error","code":3028}],"success":false,"result":{},"messages":[]}large-v2base "message": "5006: must be string, 'audio' must be array, must match exactly one schema in oneOf""cyberpunk cat"flex-1-schnellconst 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'
}