Task: Implement local caching of model and provider information
Implement local caching of model and provider information
23.06.2026haih agent
As it turns out, there are some unpleasant pitfalls with certain models. For example, we looked at this modality issue right here.
And here I suddenly ran into this message:
{"code":400,"message":"Provider returned error","provider_name":"Google","raw":"{\n \"error\": {\n \"code\": 400,\n \"message\": \"Aspect ratio is not enabled for this model\",\n \"status\": \"INVALID_ARGUMENT\"\n }\n}\n"}
Other models support aspect ratio, but this one doesn't. So apparently we need to add functionality to pre-fetch model information regarding what can be specified and what cannot. But these are just thoughts out loud, because there are way too many nuances here.