-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allows for expanded configuration
* Adds the ability to use your model of preference * Adds the ability to use custom base URLS. * This is helpful for running local LLMs or using Azure based openAI calls * Adds the ability to add additional parameters to the API call for increased customization * Adds a sample file * Backwards compatible with old api_key.lua configuration * Updates README with new documentation and use cases
- Loading branch information
1 parent
37510ec
commit 2968b82
Showing
4 changed files
with
82 additions
and
17 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 +1,2 @@ | ||
/api_key.lua | ||
/api_key.lua | ||
/configuration.lua |
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,8 @@ | ||
local CONFIGURATION = { | ||
api_key = "YOUR_API_KEY", | ||
model = "gpt-4o-mini", | ||
base_url = "https://api.openai.com/v1/chat/completions", | ||
additional_parameters = {}, | ||
} | ||
|
||
return CONFIGURATION |
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