0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

Compare commits

...

9 commits

Author SHA1 Message Date
Rhys Balevicius
a8d5039ad8 Merge branch 'fix/factory-gateway-errors' into fix/factory-gateway-catalogue 2026-11-17 05:17:40 +00:00
Rhys Balevicius
bb6c76b52e style(factory): restore repository formatting 2026-11-17 05:17:40 +00:00
Rhys Balevicius
ad80361768 Merge branch 'fix/gateway-v2-studio-errors' into fix/factory-gateway-errors 2026-11-17 05:17:17 +00:00
Rhys Balevicius
d390b2e410 Merge branch 'fix/gateway-v2-client' into fix/gateway-v2-studio-errors 2026-11-17 05:14:13 +00:00
Rhys Balevicius
0a8c60e9fc chore(core): merge main and format gateway tests 2026-11-17 05:14:12 +00:00
Rhys Balevicius
5a38548053 fix(factory): handle gateway catalog failures in settings
Fetch gateway models with the tenant's key so settings show the models its organization can use. Bound catalog waits and keep connection controls available during failures. Reuse cached catalogs through transient outages without substituting the server key's models.
2026-11-17 04:02:52 +00:00
Rhys Balevicius
d5991a1a6e fix(factory): explain gateway refusals with appropriate recovery actions
Distinguish gateway billing, routing, context and rate limit failures in the web UI and Slack so users get relevant recovery actions. Offer credits only when adding them can help.

Recognize v1 billing replies by their structure and configured gateways by request origin, including saved errors that record it.
2026-11-17 04:00:59 +00:00
Rhys Balevicius
39730d0340 fix(core): correct gateway diagnostics and studio model selection
Persist request origins so saved errors distinguish gateway failures from provider failures without retaining URL credentials or paths. Restore missing-memory warnings when the gateway does not manage memory, without delaying runs.

Keep the gateway visible when its catalog fails to load. Use gateway credentials when selecting models for instruction enhancement.
2026-11-17 03:58:31 +00:00
Rhys Balevicius
75ed0cbce9 fix(core): correct gateway catalogs, version routing and stream usage
Authenticate and cache v2 model catalogs with bounded fallback and retry delays to reduce waits during outages. Keep organization catalogs out of the shared provider cache so they stay isolated across projects.

Honor v1 project keys and registered gateway settings so Studio and model calls agree on the gateway version. Request streaming token usage so final usage chunks are reported.
2026-11-17 03:57:57 +00:00
40 changed files with 2600 additions and 129 deletions