laravel google bard
v1.1.1
Ein Laravel-Paket für Google Bard AI Chatbot
composer require adityadees/laravel-google-bard
php artisan vendor:publish --tag=laravel-bard
laravel-bard.php
wird im config
erstelltbard_token
mit Ihrem Token Besuchen Sie https://bard.google.com/. Gehen Sie zu Entwicklertools oder drücken Sie F12 Anwendung → Cookies → Kopieren Sie den Wert des __Secure-1PSID-Cookies.
$ bard = ( new LaravelBard ())-> get_answer ( ' type_your_text_here ' );
# to get the reply just access this array
$ bard [ " content " ];
# you can access others array like this
$ bard [ " conversation_id " ];
$ bard [ " response_id " ];
$ bard [ " factualityQueries " ];
$ bard [ " textQuery " ];
$ bard [ " choices " ];
$ bard = ( new LaravelBard ())-> get_answer ( ' hello whats your name ' );
dd ( $ bard [ " content " ]);
Helfen Sie gerne mit, dieses Paket zu verbessern
Hinweis: Das Paket enthält Ressourcen aus dem Repository https://github.com/dsdanielpark/Bard-API