is there a place we can request new open source models? https://developers.cloudflare.com/workers-ai
is there a place we can request new open source models? https://developers.cloudflare.com/workers-ai/models/ I am wanting to use the new Kimi K2?


@cf/meta/llama-4-scout-17b-16e-instruct) does support tool calls as per this page.#15862 that explored this exact issue. Apparently, the tool call input format in the response from the cf model was wrong, and hence langchain would pick it up as a normal response (more details in the github thread).


generate_speech_chunk_0 that is already sent back to the client, so the other chunks don't really matter{"success":false,"errors":[{"code":9106,"message":"Missing X-Auth-Key, X-Auth-Email or Authorization headers"}]}unshift adds the system message to the start of the arrayexport default {
async fetch(req, env) {
const response = await fetch('https://example.com')
const blob = await response.blob()
const markdown = await env.ai.toMarkdown({ name: 'example.com', blob })
return Response.json(markdown )
}
}{
"name": "example.com",
"mimeType": "text/html",
"format": "markdown",
"tokens": 314,
"data": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n div {\n margin: 0 auto;\n width: auto;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is for use in illustrative examples in documents. You may use this\n domain in literature without prior coordination or asking for permission.</p>\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n"
}@cf/meta/llama-4-scout-17b-16e-instruct#15862[6:27:34 PM] read_form_data: 25.065ms
[6:27:39 PM] transcribe: 4.907s
[6:27:40 PM] generate_fist_text_chunk: 763.861ms
[6:27:41 PM] generate_speech_chunk_0: 1.476s
[6:27:42 PM] generate_speech_chunk_1: 901.312ms
[6:28:02 PM] read_form_data: 19.01ms
[6:28:06 PM] transcribe: 3.367s
[6:28:06 PM] generate_fist_text_chunk: 612.575ms
[6:28:07 PM] generate_speech_chunk_0: 1.148s
[6:28:09 PM] generate_speech_chunk_1: 1.428s
[6:28:10 PM] generate_speech_chunk_2: 1.582s
[6:28:12 PM] generate_speech_chunk_3: 1.267s
[6:28:26 PM] read_form_data: 5.596ms
[6:28:27 PM] transcribe: 1.593s
[6:28:28 PM] generate_fist_text_chunk: 798.88ms
[6:28:29 PM] generate_speech_chunk_0: 1.294s
[6:28:30 PM] generate_speech_chunk_1: 698.474ms
[6:28:31 PM] generate_speech_chunk_2: 920.976msgenerate_speech_chunk_0{"success":false,"errors":[{"code":9106,"message":"Missing X-Auth-Key, X-Auth-Email or Authorization headers"}]}unshift{
"messages": [
{
"role": "tool",
"tool_call_id": "chatcmpl-tool-04bad465677b4783b6797433a8deb05b",
"content": "Pretend you got databack this tool is still under construction"
},
{
"role": "tool",
"tool_call_id": "chatcmpl-tool-5d73b086fe964ae2900cdd527a659f1f",
"content": "Pretend you got databack this tool is still under construction"
},
{
"role": "tool",
"tool_call_id": "chatcmpl-tool-0140345ec2584ae0b8d4d6d1e3c6585e",
"content": "Pretend you got databack this tool is still under construction"
},
{
"role": "user",
"content": "hey can you fetch data relating to joe?"
},
{
"role": "system",
"content": "You are a database assistant, you will query the database if a user requests information from it and respond with a human readable output, please only call the tool once and respond each time after a tool call, all tool responses have the role tool"
}
],
"max_tokens": 1024,
"raw": false,
"tools": [
{
"type": "function",
"function": {
"name": "Query Vector Database",
"description": "Queries the Vector Database for legal documents matching the provided query",
"parameters": {
"type": "object",
"properties": {
"Query": {
"type": "string",
"description": "The query to the Vector db"
}
},
"required": ["Query"]
}
}
}
]
}