okay yeah so it is broken but a workaround is like how i mentioned above
okay yeah so it is broken but a workaround is like how i mentioned above



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 arraytool_calls instead of string content: https://platform.openai.com/docs/api-reference/chat/createX
•7/22/25, 8:52 PM
allminiLmv6 in cloudflare workers ai.[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"}]}unshifttool_callscontentallminiLmv6{
"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"]
}
}
}
]
} {
"role": "assistant",
"tool_calls": [
{
"id": "039920ecd55b4b5ba689d692933602cc",
"function": {
"name": "Query Vector Database",
"arguments": "{\"Query\": \"joe\"}"
},
"type": "function"
}
],
"content": ""
}