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

Created on 6 November 2023, 8 months ago
Updated 16 May 2024, about 1 month 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

Active

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.

Production build 0.69.0 2024