https://www.boundaryml.com logo
GeminiPro LLM malformed function call error
# help
j
I tried switching to gemini-3-pro and am seeing this error: failed with status code: BadResponse 2\\nMessage: Failed to parse into a response accepted by baml_runtime::internal::llm_client::primitive::vertex::types::VertexResponse: {\\\"candidates\\\":[{\\\"content\\\":{},\\\"finishReason\\\":\\\"MALFORMED_FUNCTION_CALL\\\",\\\"finishMessage\\\":\\\"Malformed function call: call:default\\\\n{ .... "usageMetadata\\\":{\\\"promptTokenCount\\\":687936,\\\"totalTokenCount\\\":687936,\\\"trafficType\\\":\\\"ON_DEMAND\\\",\\\"promptTokensDetails\\\":[{\\\"modality\\\":\\\"TEXT\\\",\\\"tokenCount\\\":687936}]},\\\"modelVersion\\\":\\\"gemini-3-pro-preview\\\",\\\"createTime\\\":\\\"2026-01-27T21:18:35.108327Z\\\",\\\"responseId\\\":\\\"qyt5aafOBsSB6tkPtefKwAk\\\"}\\n\\nCaused by:\\n missing field `parts`\", It does not happen all the time but enough that I will have to revert the switch to Gemini
g
Thanks for letting us know! I've put it on our issue tracker to look in to.
2 Views