github mastra-ai/mastra @mastra/core@1.40.0
June 3, 2026

latest release: @mastra/core@1.41.0
5 hours ago

Highlights

Gateway Embedding Routing via mastra/provider/model IDs

@mastra/core adds support for routing embeddings through the Gateway using mastra/provider/model identifiers (e.g., new ModelRouterEmbeddingModel('mastra/__GATEWAY_OPENAI_EMBEDDING_MODEL__')).

Breaking Changes

  • None noted in this changelog (other packages were dependency-only updates).

Changelog

@mastra/core@1.40.0

Minor Changes

  • Added support for Gateway embedding routing with mastra/provider/model IDs: (#17469)

    const embedder = new ModelRouterEmbeddingModel('mastra/__GATEWAY_OPENAI_EMBEDDING_MODEL__');

Other updated packages

The following packages were updated with dependency changes only:

Don't miss a new mastra release

NewReleases is sending notifications on new releases.