sparrowapp-dev / sparrow-app

Your next-gen API testing and development tool.
https://sparrowapp.dev
GNU Affero General Public License v3.0
48 stars 28 forks source link

[AI Chatbot] Curl issue while generating from AI #1351

Open sanilnayak opened 1 month ago

sanilnayak commented 1 month ago

🐛 Bug Report

Steps to reproduce:

Expected Behaviour: Generated curl should be same.

Actual Behaviour: In some API's generated curl is not same.

curl -X POST "https://petstore.swagger.io/v2/pet/{petId}/uploadImage" \ -H "api_key: " \ -H "Content-Type: multipart/form-data" \ -F "additionalMetadata=" \ -F "file=@path_to_file"

curl -X POST "https://petstore.swagger.io/v2/pet/{petId}/uploadImage" \ -H "api_key: " \ -F "additionalMetadata=" \ -F "file=@path_to_file"

jshalini26 commented 1 month ago

Tested in windows

Astitva877 commented 1 month ago

@sanilnayak these curls are generating through openai api, the response will vary although we have changed the instructions to make it stable, please check again

CC: @nagesh953 @LordNayan @ayushadhikari93

sanilnayak commented 1 month ago

had a discussion with @LordNayan , @Astitva877 got the idea how we can resolve this. Moving back to developemnt.