@mastra/core@1.40.0

ictnlp/LLaMA-Omni@mastra/core@1.40.0Jun 5, 2026by PaulieScanlon

AI Summary

Adds support for Gateway Embedding Routing using specific `mastra/provider/model` identifiers.

Key Highlights

  • Gateway Embedding Routing via `mastra/provider/model` IDs

New Features

  • New `ModelRouterEmbeddingModel` constructor accepting gateway IDs

Full Release Notes

## 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](https://github.com/mastra-ai/mastra/blob/@mastra/core@1.40.0/packages/core/CHANGELOG.md)
#### Minor Changes

- Added support for Gateway embedding routing with `mastra/provider/model` IDs: ([#17469](https://github.com/mastra-ai/mastra/pull/17469))

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

### Other updated packages

The following packages were updated with dependency changes only:

- [@mastra/client-js@1.23.1](https://github.com/mastra-ai/mastra/blob/@mastra/client-js@1.23.1/client-sdks/client-js/CHANGELOG.md)
- [@mastra/deployer@1.40.0](https://github.com/mastra-ai/mastra/blob/@mastra/deployer@1.40.0/packages/deployer/CHANGELOG.md)
- [@mastra/deployer-cloud@1.40.0](https://github.com/mastra-ai/mastra/blob/@mastra/deployer-cloud@1.40.0/deployers/cloud/CHANGELOG.md)
- [@mastra/deployer-cloudflare@1.1.41](https://github.com/mastra-ai/mastra/blob/@mastra/deployer-cloudflare@1.1.41/deployers/cloudflare/CHANGELOG.md)
- [@mastra/deployer-netlify@1.1.17](https://github.com/mastra-ai/mastra/blob/@mastra/deployer-netlify@1.1.17/deployers/netlify/CHANGELOG.md)
- [@mastra/deployer-vercel@1.1.35](https://github.com/mastra-ai/mastra/blob/@mastra/deployer-vercel@1.1.35/deployers/vercel/CHANGELOG.md)
- [@mastra/express@1.3.28](https://github.com/mastra-ai/mastra/blob/@mastra/express@1.3.28/server-adapters/express/CHANGELOG.md)
- [@mastra/fastify@1.3.28](https://github.com/mastra-ai/mastra/blob/@mastra/fastify@1.3.28/server-adapters/fastify/CHANGELOG.md)
- [@mastra/hono@1.4.23](https://github.com/mastra-ai/mastra/blob/@mastra/hono@1.4.23/server-adapters/hono/CHANGELOG.md)
- [@mastra/koa@1.5.11](https://github.com/mastra-ai/mastra/blob/@mastra/koa@1.5.11/server-adapters/koa/CHANGELOG.md)
- [@mastra/longmemeval@1.0.47](https://github.com/mastra-ai/mastra/blob/@mastra/longmemeval@1.0.47/explorations/longmemeval/CHANGELOG.md)
- [@mastra/mcp-docs-server@1.1.44](https://github.com/mastra-ai/mastra/blob/@mastra/mcp-docs-server@1.1.44/packages/mcp-docs-server/CHANGELOG.md)
- [@mastra/nestjs@0.1.12](https://github.com/mastra-ai/mastra/blob/@mastra/nestjs@0.1.12/server-adapters/nestjs/CHANGELOG.md)
- [@mastra/opencode@0.0.44](https://github.com/mastra-ai/mastra/blob/@mastra/opencode@0.0.44/integrations/opencode/CHANGELOG.md)
- [@mastra/playground-ui@32.0.1](https://github.com/mastra-ai/mastra/blob/@mastra/playground-ui@32.0.1/packages/playground-ui/CHANGELOG.md)
- [@mastra/react@0.5.1](https://github.com/mastra-ai/mastra/blob/@mastra/react@0.5.1/client-sdks/react/CHANGELOG.md)
- [@mastra/server@1.40.0](https://github.com/mastra-ai/mastra/blob/@mastra/server@1.40.0/packages/server/CHANGELOG.md)
- [@mastra/temporal@0.1.11](https://github.com/mastra-ai/mastra/blob/@mastra/temporal@0.1.11/workflows/temporal/CHANGELOG.md)