Thứ Năm, 7 tháng 3, 2024

plg-chatgpt-1.0.2 joomla 4-5 not respond - SOLVED

Issue the same you posted, load not respond
Link download: https://github.com/R2H-BV/chatgpt
Detail: joomla 5, tinyMCE or JCE editor - SOVLED
Time : 2024 March 07 20:41
Reason: open api invalid model
Solution: replace model 'gpt-3.5-turbo-instruct, babbage-002, davinci-002'. This base from https://openai.com/
- media\plg_editors-xtd_chatgpt\js\chatgpt-default.js
- Replace lines: 69-74
let raw = JSON.stringify({
    'prompt': input,
    'model': apiModel,
    'max_tokens': apiTokens,
    'temperature': apiTemp
});

To
let raw = JSON.stringify({
    'prompt': input,
    'model': 'gpt-3.5-turbo-instruct',
    'max_tokens': apiTokens,
    'temperature': apiTemp
});

 



0 nhận xét:

Đăng nhận xét