Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mastashake08/laravel-chat-gpt-api
Laravel API example that uses the Laravel OpenAI API package to easily deploy a ChatGPT API
https://github.com/mastashake08/laravel-chat-gpt-api
chatgpt chatgpt-api laravel
Last synced: 2 months ago
JSON representation
Laravel API example that uses the Laravel OpenAI API package to easily deploy a ChatGPT API
- Host: GitHub
- URL: https://github.com/mastashake08/laravel-chat-gpt-api
- Owner: mastashake08
- Created: 2023-02-17T04:58:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-06T19:44:53.000Z (11 months ago)
- Last Synced: 2024-05-01T21:49:52.959Z (9 months ago)
- Topics: chatgpt, chatgpt-api, laravel
- Language: Vue
- Homepage:
- Size: 329 KB
- Stars: 9
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## About This Repo
I really like AI and ChatGPT has blown my mind. I decided to create a Laravel API that uses ChatGPT to easily integrate in other applications! See the blog at [my blog](https://jyroneparker.com/2023/02/17/creating-a-laravel-chatgpt-api/)
## Usage
This Laravel tutorial application is powered by the [Laravel OpenAI API] (https://github.com/mastashake08/laravel-openai-api) package created by yours truly and can be found here. This package simply requires the package and exposes the API from the package. Simply spin up the instance, run composer, set the .env file and hit the URL.```
composer install
``````
POST /api/generate-result $data - a JSON object containing OpenAI configuration
e.g.
{
"model": "text-davinci-003",
"prompt" : "Write a wordpress post excerpt summarizing ChatGPT",
"temperature": 0.9,
"max_tokens": 20
}
```
## Consider Sponsoring
Help me maintain this project, please consider looking at the [FUNDING](./.github/FUNDING.yml) file for more info.## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Jyrone Parker](https://github.com/mastashake08)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.