- Issue created by @bircher
- First commit to issue fork.
- 🇩🇪Germany marcus_johansson
Thanks, last issue merged for 1.1.0 release hopefully!
Automatically closed - issue fixed for 2 weeks with no activity.
The chat method signature accepts strings arrays and ChatInput objects, but it calls method_exists on it which fails on arrays.
[error] TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in method_exists() (line 359 of /var/www/html/web/modules/contrib/ai_provider_openai/src/Plugin/AiProvider/OpenAiProvider.php)
Pass an array to chat.
check if the input is an object.
PR
none
none
none
Active
1.1
Code
Thanks, last issue merged for 1.1.0 release hopefully!
Automatically closed - issue fixed for 2 weeks with no activity.