- Issue created by @marcus_johansson
-
marcus_johansson ā
committed 68b9a0a7 on 1.1.x
Resolve #3526543 "Allow to set"
-
marcus_johansson ā
committed 68b9a0a7 on 1.1.x
-
marcus_johansson ā
committed 68b9a0a7 on 1.2.x
Resolve #3526543 "Allow to set"
-
marcus_johansson ā
committed 68b9a0a7 on 1.2.x
- šŗš¦Ukraine kolesnikoff
@marcus_johansson the previous code used $message['message'] and new version uses $message['content'].
It causes a fatal error in the chatbot:
new ChatMessage($message['role'], $message['content'])
- Argument #2 ($text) must be of type string, null given.Do we need to update \Drupal\ai_assistant_api\AiAssistantApiRunner::getMessageHistory() to use 'content' array key instead of 'message'?
- š®š³India prabha1997
Iām also encountering the same issue.
Steps to Reproduce:
Install the following modules:- ai, ai_provider_openai, ai_agents, ai_assistant_api, ai_chatbot
- Create an assistant and select any agent from the list.
- Set the agent to be used as the assistant.
- Place the AI Chatbot block in the block layout.
- Try interacting with the chatbot
Observed Issue:
When sending a message to the chatbot, the following error is thrown:TypeError: Drupal\ai\OperationType\Chat\ChatMessage::__construct(): Argument #2 ($text) must be of type string, null given, called in /var/www/html/modules/contrib/ai/modules/ai_assistant_api/src/Service/AgentRunner.php on line 42
- š®š³India prashant.c Dharamshala
Due to the fatal error issue, changing the status to NW.
- š®š³India anjaliprasannan
I have reviewed the fix. It works fine. Moving to RTBC
- š©šŖGermany marcus_johansson
Thank you all, getting merged into 1.1.x and added to 1.2.x as well.
-
marcus_johansson ā
committed 6ab6c30c on 1.1.x authored by
prabha1997 ā
Resolve #3526543 "Allow to set"
-
marcus_johansson ā
committed 6ab6c30c on 1.1.x authored by
prabha1997 ā
-
marcus_johansson ā
committed 6ab6c30c on 1.2.x authored by
prabha1997 ā
Resolve #3526543 "Allow to set"
-
marcus_johansson ā
committed 6ab6c30c on 1.2.x authored by
prabha1997 ā