langchain-php
langchain-php copied to clipboard
[Bug]: You exceeded your current quota, please check your plan and billing details.
What happened?
use in laravel 9
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Kambo\Langchain\LLMs\OpenAI;
use Kambo\Langchain\LLMs\OpenAIChat;
class TestController extends Controller
{
public function webhook(Request $request)
{
$llm = new OpenAIChat([
'temperature' => 0.9,
'openai_api_key' => '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',
]);
$text = "hello";
echo $llm($text);
//return response()->json($result, 200)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
}
}
How to reproduce the bug
not work
notice: You exceeded your current quota, please check your plan and billing details. this is a free account
Package Version
"kambo/langchain": "0.2.0-alpha",
PHP Version
8.2.6
Which operating systems does with happen with?
macOS, Linux
Notes
No response