[mirotalksfu] - add OpenAiApi basePath
هذا الالتزام موجود في:
@@ -130,6 +130,7 @@ if (config.chatGPT.enabled) {
|
||||
if (config.chatGPT.apiKey) {
|
||||
const { Configuration, OpenAIApi } = require('openai');
|
||||
const configuration = new Configuration({
|
||||
basePath: config.chatGPT.basePath,
|
||||
apiKey: config.chatGPT.apiKey,
|
||||
});
|
||||
chatGPT = new OpenAIApi(configuration);
|
||||
|
||||
@@ -91,6 +91,7 @@ module.exports = {
|
||||
3. Generate your APIKey https://platform.openai.com/account/api-keys
|
||||
*/
|
||||
enabled: false,
|
||||
basePath: 'https://api.openai.com/v1/',
|
||||
apiKey: '',
|
||||
model: 'text-davinci-003',
|
||||
max_tokens: 1000,
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم