@mastra/playground-ui 6.3.1-alpha.2 → 6.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -8355,7 +8355,7 @@ const providerMapToIcon = {
8355
8355
  };
8356
8356
 
8357
8357
  const cleanProviderId = (providerId) => {
8358
- return providerId.replace(/\.(chat|x|messages|completion)$/i, "");
8358
+ return providerId.includes(`.`) ? providerId.split(`.`)[0] : providerId;
8359
8359
  };
8360
8360
 
8361
8361
  const ProviderLogo = ({ providerId, className = "", size = 20 }) => {