You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried setting up your Bard package but it fails with the eror "Class "LaravelBard" not found"
i've tried importing it via
use LaravelBard;
or
use Bard;
but those aren't right :)
Here's my controller
*<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
//use LaravelBard;
class testController extends Controller
{
public function __invoke()
{
dump('test');
$bard = (new LaravelBard())->get_answer('hoe laat is het');
dd($bard);
# 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"];
}
}`**
Please advice
The text was updated successfully, but these errors were encountered:
Hi
I tried setting up your Bard package but it fails with the eror "Class "LaravelBard" not found"
i've tried importing it via
use LaravelBard;
or
use Bard;
but those aren't right :)
Here's my controller
*<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
//use LaravelBard;
class testController extends Controller
{
public function __invoke()
{
dump('test');
}`**
Please advice
The text was updated successfully, but these errors were encountered: