absoluteapoorv
absoluteapoorv9mo ago

Ai books template Error: 400 Invalid value for 'content': expected a string, got null.

Hi Guys, I was testing out the template for Ai books using OpenAi but it doesn't seem to be working. I only added my API key but it throws the above error in the logs when I test it on buildship. I checked the node code and the content is passed with systemprompt. Can anyone address this please?
8 Replies
Gaurav Chadha
Gaurav Chadha9mo ago
Sent an email with fix. Marking this ✅
paulokoduwa
paulokoduwa9mo ago
hey @Gaurav Chadha how was this solved?
Gaurav Chadha
Gaurav Chadha9mo ago
To fix the issue with the AI books template, delete the Form value Extractor node (the node on which it is giving an error) and add it again from the node explorer. It will work then.
paulokoduwa
paulokoduwa9mo ago
@Gaurav Chadha I am talking about this error 400 Invalid value for 'content': expected a string, got null.
Gaurav Chadha
Gaurav Chadha9mo ago
Yes, the above solution is for this only. On which node you are getting this error (Form Value extractor?), please share a video/screenshot.
paulokoduwa
paulokoduwa9mo ago
it's a different node entirely. I created a simple get request with open ai. https://518b3k.buildship.run/painreview it's asking for content. How do i add content after it's been shipped
Gaurav Chadha
Gaurav Chadha9mo ago
You'll require to pass the content (prompt) using your frontend, to try it on your shipped workflow you can use Postman. You can refer this - https://youtu.be/pzDFhkCzIrk?t=437. (time stamp)
BuildShip + Rowy
YouTube
Story Books App - Combine GPT4, DALLE, Text To Speech API - No Code
Learn how you can create a Story Books App backend that can combine OpenAI GPT4, Dall.E, Text to Speech APIs - with no code - by using the low-code visual backend builder and fast to use template. Get started with BuildShip 👉 https://buildship.com 💬 Chat and build together with a community of no-code/low-code developers: https://buildship.com/...
paulokoduwa
paulokoduwa9mo ago
thank you