hi @Teodor
I am testing the AI feature within Wappler version 7. I created a api key from OpenRouter and added it to the necessary places within Wappler. I am currently able to receive responses to the questions I ask. However, while using the agent feature, I encountered several issues with many models, such as "400 provider error", "Tool not found: null", "Error: An array has an empty value when tool_calls are constructed. tool_calls: [object Object]; tool: [object Object]", or the process being interrupted while the agent is running. I haven't been able to successfully complete even a single operation yet. I need your help to clarify the error further and to find a solution.
I did some testing with a few models on OpenRouter:
Anthropic Claude Sonnet 4
DeepSeek R3 Free
Google: Gemini 2.5 Pro Preview 06-05
These are the ones I use the most, but I’ve tested many other models as well and experienced similar issues with all of them. Thinking the problem might be related to OpenRouter, I also did new tests using Claude and OpenAI API keys, but unfortunately I encountered similar problems each time.
Apart from that, as you can also see in the screenshot, the input field that should appear at the bottom of the left chat panel disappears, and I have to restart Wappler.