Skip to content

Commit

Permalink
Frozen @ Tue Jan 2 04:06:36 EST 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
Leask committed Jan 2, 2024
1 parent 348b9ab commit 0ba42de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const init = async (options) => {
// init ai engines
if (options?.openaiApiKey || options?.chatGptApiKey) {
const apiKey = { apiKey: options?.openaiApiKey || options?.chatGptApiKey };
await alan.init({ provider: 'openai', ...apiKey, ...options });
await alan.init({ ...apiKey, ...options, provider: 'openai' });
ai['ChatGPT'] = {
engine: 'CHATGPT', priority: options?.chatGptPriority || 0,
};
Expand Down

0 comments on commit 0ba42de

Please sign in to comment.