- Issue created by @wouters_f
-
Marcus_Johansson →
committed 1fbd3132 on 1.0.x
Issue #3457341 by wouters_f, Marcus_Johansson: API errors not showing (...
-
Marcus_Johansson →
committed 1fbd3132 on 1.0.x
- Assigned to marcus_johansson
- Status changed to Fixed
6 months ago 2:26pm 26 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- 🇩🇪Germany netvidual
I'm having similar errors when using a local network LLM Service configured with LmStudioProvider:
TypeError: array_map(): Argument #2 ($array) must be of type array, null given in array_map() (line 51 of /var/www/html/vendor/openai-php/client/src/Responses/Chat/CreateResponse.php).
OpenAI\Responses\Chat\CreateResponse::from(Array, Object) (Line: 35)
OpenAI\Resources\Chat->create(Array) (Line: 225)
Drupal\provider_lmstudio\Plugin\AiProvider\LmStudioProvider->chat(Object, 'multilingual-e5-large', Array)It is working for embedding via search api to vector db, the error only appears for Chat.
Would appreciate some ideas how to debug. Could it be a timeout, if the response time is maybe to long?