Expand my Community achievements bar.

Interested in getting an Adobe Workfront certification? Don't miss our AMA on June 10th, where our experts will be available to answer any questions you may have about getting certified!
SOLVED

Why is API call being stringified?

Avatar

Level 6

I am trying to call the OpenAI GPT-4 model and my request body is being stringified, how do I fix this to send correct JSON request body? First screenshot is module, second is strigified request body, last screenshot is what the correct call looks like. I am not using the last one because it would not let me update the temperature/top_p value in the "create chat completion" module.

 

Lawson02_0-1737680623261.png

Lawson02_1-1737680634609.png

Lawson02_2-1737680677161.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6

I was using their built in API call module for OpenAI. There was a bug in the module causing the call to be stringified. I worked with customer support and they resolved the bug and they released a patch.

View solution in original post

2 Replies

Avatar

Community Advisor

@Lawson02 

Not enough context/info to help troubleshoot. 

  • what's the module you're using? 
  • what does the module execution bubble show?

 

When I use a plain HTTP module with a JSON payload it arrives as expected ...

 

SveniX_0-1741034352992.png

 

Avatar

Correct answer by
Level 6

I was using their built in API call module for OpenAI. There was a bug in the module causing the call to be stringified. I worked with customer support and they resolved the bug and they released a patch.