Skip to content

Warning: Array to string conversion in NeuronAI\Providers\Anthropic\Anthropic #246

@robiningelbrecht

Description

@robiningelbrecht

Describe the bug

Warning: Array to string conversion: #0 [internal function]: NeuronAI\Providers\Anthropic\Anthropic->{closure:NeuronAI\Providers\Anthropic\HandleStream::stream():70}() #1 /var/www/vendor/inspector-apm/neuron-ai/src/Providers/Anthropic/HandleStream.php(70): array_map() #2 /var/www/vendor/inspector-apm/neuron-ai/src/HandleStream.php(37): NeuronAI\Providers\Anthropic\Anthropic->stream() #3 /var/www/vendor/inspector-apm/neuron-ai/src/HandleStream.php(31): NeuronAI\Agent->stream() #4 /var/www/vendor/inspector-apm/neuron-ai/src/Providers/Anthropic/HandleStream.php(76): NeuronAI\Agent->{closure:NeuronAI\HandleStream::stream():29}() #5 /var/www/vendor/inspector-apm/neuron-ai/src/HandleStream.php(37): NeuronAI\Providers\Anthropic\Anthropic->stream() #6 /var/www/src/Controller/AIChatRequestHandler.php(116): NeuronAI\Agent->stream() #7 /var/www/vendor/symfony/http-kernel/HttpKernel.php(101): App\Controller\AIChatRequestHandler->{closure:App\Controller\AIChatRequestHandler::chatSse():80}() #8 /var/www/vendor/symfony/http-foundation/StreamedResponse.php(125): Symfony\Component\HttpKernel\HttpKernel::{closure:Symfony\Component\HttpKernel\HttpKernel::handle():98}() #9 /var/www/vendor/symfony/http-foundation/Response.php(397): Symfony\Component\HttpFoundation\StreamedResponse->sendContent() #10 /var/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(38): Symfony\Component\HttpFoundation\Response->send() #11 /var/www/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() #12 /var/www/public/index.php(5): require_once('...') #13 {main}

To Reproduce

  • Use Anthropic as a provider
  • Use some tools
  • After a few interactions with the agent this error "randomly" pops up

The Neuron AI version you are using:

  • Version 1.16.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions