How To Change The OpenAI Model For SP Page Builder? - Question | JoomShaper

is live, now with multi-currency selling.

How To Change The OpenAI Model For SP Page Builder?

5

5uwebsite

SP Page Builder 2 years ago

Thanks for developing the great feature of integrating Open AI's generative AI. Currently it seems that it could only work with GPT 3.5 Turbo. May I know where or how we could change the model so that we could use other models?

Thank you,

0
6 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #165252

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Right now, we didn't add this functionality. We will try to add this function as soon as possible.

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
5
5uwebsite
Accepted Answer
2 years ago #165267

Thank you Toufiq.

While there is no setup for us to change it now, is there a way to modify the code directly, so that when we call API, we could change to other models?

Thank you.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #165307

We will add option to change AI model from backend.

0
5
5uwebsite
Accepted Answer
2 years ago #165312

Thank you and if it will happen soon, then we will wait for it. I think it should be an easy implementation as we just need to change one parameter and it should not affect your product at all.

If it could take some time to happen, do you mind to share which file the model is stored in, so that we don't have to search for it?

Thanks a lot!

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #165340

It has design dependencies, I hope it will be added soon.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #165362

Check those files from component package:

  • admin\editor\traits\AiContentTrait.php
  • admin\editor\traits\AiContentUploadTrait.php
  • site\controllers\ai_content.php

inside the last file there are lines 95-97:

        // Set your OpenAI API key here
        $apiKey = $cParams->get('openai_api_key', '');
        $model = "gpt-3.5-turbo";
0