Problem/Motivation
When I try to use any of the "* (Latest)" models, they all return the following error:
The following error occurred while processing your request:
Error invoking model response: model: claude-sonnet-4-latest
Of the following exception type:
Drupal\ai\Exception\AiRequestErrorExceptionSteps to reproduce
Use the Chat Generation Explorer (/admin/config/ai/explorers/chat_generator), select any of the "(Latest)" models, enter a prompt and submit.
Issue fork ai_provider_anthropic-3555574
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pameeela commentedJust hit the same issue testing Canvas AI with Drupal CMS. The recipe defaulted to "Latest" and it only works if I change this to select a specific model.
Comment #3
marcus_johansson commentedComment #4
marcus_johansson commentedComment #6
marcus_johansson commentedThe latest suffix has been removed by anthropic silently.
I have:
Since dated models can lose support, I will add a follow-up issue that we need to look for new models with the same model name, when a model is not found. But this should fix the critical part, so we can do a new release.
Comment #8
marcus_johansson commentedOne change for 1.2.x and one for 1.1.x. 1.0.x will lose support.
Comment #9
marcus_johansson commentedComment #10
marcus_johansson commentedComment #11
a.dmitriiev commentedComment #12
marcus_johansson commentedComment #13
a.dmitriiev commentedComment #14
marcus_johansson commentedThank you everyone involved.