Skip to content

Commit ffc3db7

Browse files
authored
refactor: be more explicit in supports method (#205)
1 parent f8eed58 commit ffc3db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridge/OpenRouter/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131

3232
public function supports(Model $model, array|string|object $input): bool
3333
{
34-
return $input instanceof MessageBagInterface;
34+
return $input instanceof MessageBagInterface && $model instanceof GenericModel;
3535
}
3636

3737
public function request(Model $model, object|array|string $input, array $options = []): ResponseInterface

0 commit comments

Comments
 (0)