-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgraded to ChatGPT API and made settings more secure
- Loading branch information
Showing
5 changed files
with
80 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
api_key.txt | ||
vendor/ | ||
composer.phar | ||
settings.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"orhanerday/open-ai": "^3.4", | ||
"orhanerday/open-ai": "*", | ||
"league/commonmark": "^2.3" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Rename this file to "settings.php" and add your OpenAI API key | ||
* | ||
* You can also add a system message if you want. A system message | ||
* will change the behavior of ChatGPT. You can tell it to | ||
* answer messages in a specific manner, act as someone else | ||
* or provide any other context for the chat. | ||
*/ | ||
|
||
return [ | ||
// add your OpenAI API key here | ||
"api_key" => "", | ||
|
||
// add an optional system message here | ||
"system_message" => "", | ||
]; |