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