https://www.boundaryml.com logo
🟡 Error in production with BAML 0.88.0
# questions
u
hey all, getting an error in production (quite urgent) not 100% sure how to resolve. have added a fallback to another model, but would appreciate some help if possible Stack Trace:
Copy code
Traceback (most recent call last):

...
baml_py.BamlClientError: Something went wrong with the LLM client AIClient: Failed to parse into a response accepted by baml_runtime::internal::llm_client::primitive::google::types::GoogleResponse: {"candidates":[{"content":{"role":"model"},"finishReason":"STOP","index":0}],"usageMetadata":{"promptTokenCount":80340,"totalTokenCount":82775,"***REDACTED***":77802,"promptTokensDetails":[{"modality":"TEXT","tokenCount":80340}],"cacheTokensDetails":[{"modality":"TEXT","tokenCount":77802}],"thoughtsTokenCount":2435},"modelVersion":"gemini-2.5-pro-preview-06-05","responseId":"***REDACTED***"}

Caused by:
    missing field `parts`
using BAML 0.88.0
v
Hi thanks for reporting. This was fixed recently and should be out in today’s release. https://github.com/BoundaryML/baml/pull/2272