Bug description Using the model name as cohere.embed-english-v3 fails when using milestone 4 with an upstream error in Bedrock: “:03:38.223+01:00 ERROR 33643 --- [nio-8080-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: nl.sig.chat_api.exception_handling.QueryEmbeddingException: Failed to embed the query Write a long text about a cat. Reason: The provided model identifier is invalid. (Service: BedrockRuntime, Status Code: 400, Request ID: )] with root cause.”

Environment Java 23, Spring AI 1.0.0-M4

Steps to reproduce Trying to embed a text fails when using milestone 4 works perfectly fine in M3.

Expected behavior Embedding should work while using the correct model name.

Comment From: bruno-oliveira

My bad! All works!