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\AiRequestErrorException

Steps to reproduce

Use the Chat Generation Explorer (/admin/config/ai/explorers/chat_generator), select any of the "(Latest)" models, enter a prompt and submit.

Command icon 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

ultimike created an issue. See original summary.

pameeela’s picture

Just 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.

marcus_johansson’s picture

Issue tags: +priority
marcus_johansson’s picture

Assigned: Unassigned » marcus_johansson

marcus_johansson’s picture

Assigned: marcus_johansson » Unassigned
Priority: Normal » Major
Status: Active » Needs review

The 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.

marcus_johansson’s picture

One change for 1.2.x and one for 1.1.x. 1.0.x will lose support.

marcus_johansson’s picture

Status: Needs review » Needs work
marcus_johansson’s picture

Status: Needs work » Needs review
a.dmitriiev’s picture

Status: Needs review » Needs work
marcus_johansson’s picture

Status: Needs work » Needs review
a.dmitriiev’s picture

Status: Needs review » Reviewed & tested by the community
marcus_johansson’s picture

Status: Reviewed & tested by the community » Fixed

Thank you everyone involved.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.