langchain-php icon indicating copy to clipboard operation
langchain-php copied to clipboard

[Bug]: You exceeded your current quota, please check your plan and billing details.

Open uniteweiwei opened this issue 1 year ago • 2 comments

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

uniteweiwei avatar Jul 26 '23 10:07 uniteweiwei