File tree Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1+ # These are supported funding model platforms
2+
3+ github : mastashake08
4+ patreon : mastashake08
5+ open_collective : # Replace with a single Open Collective username
6+ ko_fi : # Replace with a single Ko-fi username
7+ tidelift : # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+ community_bridge : # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+ liberapay : # Replace with a single Liberapay username
10+ issuehunt : # Replace with a single IssueHunt username
11+ otechie : # Replace with a single Otechie username
12+ lfx_crowdfunding : # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+ custom : ' https://cash.me/$mastashake08'
Original file line number Diff line number Diff line change 55[ ![ GitHub Code Style Action Status] ( https://img.shields.io/github/actions/workflow/status/mastashake08/laravel-openai-api/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square )] ( https://github.com/mastashake08/laravel-openai-api/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain )
66[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/mastashake08/laravel-openai-api.svg?style=flat-square )] ( https://packagist.org/packages/mastashake08/laravel-openai-api )
77
8- ## Routes
9- ```
10- /api/generate-result POST
11- ```
128
139## Support us
1410
@@ -67,17 +63,26 @@ php artisan vendor:publish --tag="openai-api-views"
6763
6864## Usage
6965
66+ ### Via Code
7067``` php
7168$laravelOpenaiApi = new Mastashake\LaravelOpenaiApi();
72- echo $laravelOpenaiApi->echoPhrase('Hello, Mastashake!');
69+ echo $laravelOpenaiApi->generateResult($data);
70+ ```
71+ ### Via API
7372```
73+ /api/generate-result POST {openai_data}
74+ ```
75+
7476
7577## Testing
7678
7779``` bash
7880composer test
7981```
8082
83+ ## Consider Sponsoring
84+ Help me maintain this project, please consider looking at the [ FUNDING] ( ./github/FUNDING.yml ) file for more info.
85+
8186## Changelog
8287
8388Please see [ CHANGELOG] ( CHANGELOG.md ) for more information on what has changed recently.
@@ -92,7 +97,7 @@ Please review [our security policy](../../security/policy) on how to report secu
9297
9398## Credits
9499
95- - [ Hacker God ] ( https://github.com/mastashake08 )
100+ - [ Jyrone Parker ] ( https://github.com/mastashake08 )
96101- [ All Contributors] ( ../../contributors )
97102
98103## License
You can’t perform that action at this time.
0 commit comments