• Resolved fouzi78

    (@fouzi78)


    Hi,

    Firstly, I would like to extend my congratulations and gratitude for the excellent work on the plugin, as it has been a valuable tool

    I need assistance regarding a plugin I am using for content generation on WordPress. Currently, the plugin only supports the latest version of GPT-4 (gpt-4-0613), but it does not meet my specific requirements. I would like to inquire about the possibility of downgrading to the GPT-4-0314 model, which I believe would better suit my needs.

    Could you please guide me on how I can proceed with using the GPT-4-0314 model instead of the latest version? I appreciate any instructions or information you can provide to help me achieve this.

    Thank you for your attention to this matter. I look forward to your prompt assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @fouzi78,

    It’s not possible ?? From this article: https://help.openai.com/en/articles/7127966-what-is-the-difference-between-the-gpt-4-models:

    If you’re interested in using a previous snapshot of the model, you can refer to the specific date in the model name, such as gpt-4-0314 or gpt-4-32k-0314. The March 14th snapshot will be available until June 14th.

    Thread Starter fouzi78

    (@fouzi78)

    Hi Jordy Meow,

    Thank you for your response. However, I would like to clarify that I’ve been using the GPT-4-0314 model daily and it remains functional till September, as per OpenAI’s official update (https://openai.com/blog/function-calling-and-other-api-updates).

    Regarding the plugin, I attempted to edit the model.php file to change the model, but upon content generation, even though the API call is sent and I’m charged by OpenAI, the plugin ends up giving an error “Cannot read properties of undefined (reading ‘family’)”.

    Is there a way to resolve this issue through the WordPress plugin editor?


    “Developers who need more time to transition can continue using the older models by specifying gpt-3.5-turbo-0301, gpt-4-0314, or gpt-4-32k-0314 in the ‘model’ parameter of their API request. These older models will be accessible through September 13th, after which requests specifying those model names will fail.”.

    I would like to express my gratitude for any assistance that may be provided and for the responsiveness, regardless of the outcome.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @fouzi78,

    Okay sure! ?? Since I want to make this somehow accessible to everyone, I have added a filter in the latest release of AI Engine (1.8.5).

    I don’t think you’ll need extra explanation, this code will be self-explanatory for you. Here it is:

    add_filter('mwai_openai_models', function ($models) {
      $additional_model = [
        "model" => "gpt-4-0314",
        "name" => "gpt-4-0314",
        "family" => "gpt4",
        "price" => [
          "in" => 0.03,
          "out" => 0.06,
        ],
        "type" => "token",
        "unit" => 1 / 1000,
        "maxTokens" => 8192,
        "mode" => "chat",
        "finetune" => false,
        "tags" => ['core', 'chat']
      ];
      $models[] = $additional_model;
      return $models;
    });

    PS: Je crois que tu es Fran?ais ?? Moi aussi!

    Thread Starter fouzi78

    (@fouzi78)

    Hey !

    Magnifique, le modèle 0314 fonctionne parfaitement !

    Merci pour cette modification. Et encore bravo pour le travail effectué sur ce super plugin

    Plugin Author Jordy Meow

    (@tigroumeow)

    Merci beaucoup ! Super content que ?a marche ?? N’hésites pas à laisser un petit review et amuses toi bien avec le plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use gpt-4-0314 ?’ is closed to new replies.