You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidArgumentException(\sprintf('Provider "%s" requires a specialized bridge (%s); install it with composer require "%s".', $provider, $npmPackage, $package));
77
80
}
78
81
if (!BridgeResolver::isRoutable($npmPackage)) {
79
-
thrownewInvalidArgumentException(\sprintf('Provider "%s" requires "%s" which has a different factory signature; use "%s::create()" directly.', $provider, $package, $factoryClass));
82
+
thrownewInvalidArgumentException(\sprintf('Provider "%s" requires "%s" which has a different factory signature; use "%s::createProvider()" directly.', $provider, $package, $factoryClass));
80
83
}
81
84
82
85
$modelCatalog = newModelCatalog(
@@ -86,12 +89,13 @@ public static function create(
if (class_exists(VertexAiPlatformFactory::class)) {
132
+
if (class_exists(VertexAiFactory::class)) {
133
133
$this->expectExceptionMessage('Provider "google-vertex" requires "symfony/ai-vertex-ai-platform" which has a different factory signature');
134
134
} else {
135
135
$this->expectExceptionMessage('Provider "google-vertex" requires a specialized bridge (@ai-sdk/google-vertex); install it with composer require "symfony/ai-vertex-ai-platform".');
136
136
}
137
137
138
-
PlatformFactory::create(
138
+
Factory::createPlatform(
139
139
provider: 'google-vertex',
140
140
apiKey: 'test-key',
141
141
);
@@ -144,7 +144,7 @@ public function testProviderWithNonRoutableBridgeShowsHelpfulError()
0 commit comments