Skip to content

kazu1212-star/laravel-whisper

Repository files navigation

How to develop

  1. このレポジトリをクローン後下記コードを実行
cd chatgpt-example-laravel
cp .env{.example,}
composer install
sail up -d
sail exec laravel.test bash
php artisan key:generate

2.APIキー作成、取得

Get your API key:https://platform.openai.com/account/api-keys

3.Open AI APIへ課金

無料枠だと Faraday::ClientError (the server responded with status 429):となります。 そのため課金する必要があります。 有料には最低でも$5かかります。 Billing settings:https://platform.openai.com/account/billing/overview

  1. APIkeyをセット
// .envファイル

OPENAI_API_KEY="ここにキーを記述"
  1. 動作確認

http://localhost/chatで動作確認

参考 https://github.com/tectalichq/public-openai-client-php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published