laravel google bard
v1.1.1
حزمة Laravel لـ Google Bard AI Chatbot
composer require adityadees/laravel-google-bard
php artisan vendor:publish --tag=laravel-bard
laravel-bard.php
ضمن مجلد config
bard_token
بالرمز المميز الخاص بك قم بزيارة https://bard.google.com/ انتقل إلى أدوات المطور أو اضغط على تطبيق F12 → ملفات تعريف الارتباط → انسخ قيمة ملف تعريف الارتباط __Secure-1PSID.
$ 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 " ]);
لا تتردد في المساعدة في تحسين هذه الحزمة
ملاحظة: تحتوي الحزمة على موارد من المستودع https://github.com/dsdanielpark/Bard-API