Invalid model image-alpha-001. The model argument should be left blank

Created on 6 November 2023, about 1 year ago
Updated 20 September 2024, 2 months ago

Problem/Motivation

Can not generate image with OpenAI. Response:
stdClass Object
(
    [error] => stdClass Object
        (
            [code] => 
            [message] => Invalid model image-alpha-001. The model argument should be left blank.
            [param] => 
            [type] => invalid_request_error
        )

)

Steps to reproduce

Generate image with ckeditor

Proposed resolution

Commented out the model as per suggestion

    $data = [                                                
      //"model" => $model,              
      "prompt" => $prompt,            
      "num_images" => $num_images,
      "size" => '1024x1024',
    ];    

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium wouters_f Leuven

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @wouters_f
  • First commit to issue fork.
  • 🇧🇪Belgium wouters_f Leuven

    it should be "dall-e-3" and even better it should be configurable

  • 🇵🇹Portugal developer-rocha

    I created a patch for this issue.

  • 🇵🇹Portugal developer-rocha

    I did a update in the solution.
    I added functionality to pass the value of `$model` from the ckeditor form submission to the Controller method. This involved modifying the controller method `getimage()` to accept the additional parameter `$model`and updating the call to the `getImage()` method in the `GetAIImage` service to include the `$model` parameter. Additionally, I ensured that the value of `$model` is present in the data received by the endpoint that calls the `getimage()` method.

  • 🇵🇹Portugal developer-rocha

    I have corrected an error in the fetchmodels function. First we have to confirm that there is an OpenAi Secret Key configured.

  • Status changed to Needs review 2 months ago
  • 🇮🇳India medha kumari Jaipur

    I successfully applied patch #6, and it worked for me. See the attached image for reference. Please review it.

Production build 0.71.5 2024