Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uniteweiwei opened this issue Jul 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@uniteweiwei
Copy link

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 uniteweiwei added the bug Something isn't working label Jul 26, 2023
@uniteweiwei
Copy link
Author

image

@uniteweiwei
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant