Hello Baml team, I have been working on a project using Claude Anthropic deployed through Microsoft's Foundry to extract structure from mol bio experiment notes. I have been running into this issue quite frequently:
---REQUEST OPTIONS---
model: "claude-sonnet-4-5"
max_tokens: 63000
---ERROR (Unspecified error code: 408)---
Request failed with status code: 408 Request Timeout. {"error":{"code":"Timeout","message":"The operation was timeout."}}
Error: BamlClientHttpError(client_name=Claude_Sonnet_4_5, message=Request failed with status code: 408 Request Timeout. {"error":{"code":"Timeout","message":"The operation was timeout."}}, status_code=408, detailed_message=LLM client "Claude_Sonnet_4_5" failed with status code: Unspecified error code: 408
Message: Request failed with status code: 408 Request Timeout. {"error":{"code":"Timeout","message":"The operation was timeout."}})
I have attempted adding in a timeout configuration of 5 mins as per the documentation, but I am currently facing a different error that's blocking the request entirely, any help on how I can get consitent responses without timeouts would be really appreciated:
---REQUEST OPTIONS---
model: "claude-sonnet-4-5"
max_tokens: 63000
http: {"connect_timeout_ms":10000,"time_to_first_token_timeout_ms":30000,"idle_timeout_ms":2000,"request_timeout_ms":300000}
---ERROR (Unspecified error code: 400)---
Request failed with status code: 400 Bad Request. {"type":"error","error":{"type":"invalid_request_error","message":"http: Extra inputs are not permitted"},"request_id":"req_011CVtnYpg8i6tpqptgCYhvP"}