openai-node v3.2.1 createImageEdit() endpoint stopped working
Problem
Describe the bug I've been using openai-node v3.1.0 and openai.createImageEdit() worked well. I updated to the v3.2.1 to support the createChatCompletion() method, however my createImageEdit() is not working anymore. I get Error: Request failed with status code 400. If i downgrade to 3.1.0 is starts working back. Has createImageEdit() been changed in the latest update, so my call does not satisfy the new api? will add a code snippet wtih my method which works in v3.1.0 but doesn't in v3.2.1 <img width="567" alt="Screenshot 2023-03-03 at 12 40 49" src="https://user-images.githubusercontent.com/55192345/222686888-ee00c984-2d88-46df-8f8b-ba8bbddd6e65.png"> To Reproduce 1. update from v3.1.0 to v.3.2.1 2. call createImageEdit (implementation provided in snippets section) Code snippets [code block] OS macOS Node version v18.7.0 Library version 3.2.1
Error Output
Error: Request failed with status code 400. If i downgrade to 3.1.0 is starts working back. Has createImageEdit() been changed in the latest update, so my call does not satisfy the new api? will add a code s
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: openai-node v3.2.1 createImageEdit() endpoint stopped working
For those who encounter issue with typescript type vary bad 400 response. You probably do not have "square" image in your call. You must provide SQUARE image. This is `3.1.0` [code block] This is `3.2.0` [code block] Both worked
Trust Score
3 verifications
- 1
For those who encounter issue with typescript type vary bad 400 response.
You probably do not have "square" image in your call.
Validation
Resolved in openai/openai-node GitHub issue #84. Community reactions: 2 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep