forked from hrishioa/lumentis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAI as an additional AI provider
- Loading branch information
1 parent
33d4879
commit 5a9bb84
Showing
5 changed files
with
165 additions
and
11 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
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
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,19 @@ | ||
import dotenv from 'dotenv'; | ||
|
||
dotenv.config(); | ||
|
||
/** | ||
* Configuration object holding OpenAI and Claude specific settings. | ||
*/ | ||
export const config = { | ||
openai: { | ||
apiKey: process.env.OPENAI_API_KEY || '', | ||
apiEndpoint: process.env.OPENAI_API_ENDPOINT || 'https://api.openai.com', | ||
defaultModel: 'gpt-3.5-turbo', | ||
}, | ||
claude: { | ||
apiKey: process.env.ANTHROPIC_API_KEY || '', | ||
apiEndpoint: process.env.ANTHROPIC_API_ENDPOINT || 'https://api.anthropic.com', | ||
defaultModel: 'claude-3-haiku-20240307', | ||
}, | ||
}; |
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