UPDATE! - set the API request timeout with OpenAI to longer than 10 seconds. 20 or 30 seconds is better. This is why the API calls may randomly fail. It can be a slow API sometimes.
Great helpful tuto. Instead of trying to remember and type the correct schema path (api_1.response.result.choices.message.content), just go to the response schema of the output when you run a successful test and hit the little copy button. Then head back to the inputs. For the content value, find again the relevant var but instead of selecting it, click on blue sub-path link and paste the schema in there, right-click and format document, then click define. Then magic happens, you'll see the whole schema deployed dynamically where you can go down the schema with a few clicks, until you reach and click 'content' which will populate the whole path for you like that: api_1.response.result.choices.0.message.content And you guessed it, no more errors about the array ;)
This might seem like an obvious question to ask in regards to accessing and using the OpenAI API Key and requests via OpenAI. I take it in order to begin using this you need to set up a paid plan with OpenAI to pay for the tokens and usage per chat request you might generate from your App?
UPDATE! - set the API request timeout with OpenAI to longer than 10 seconds. 20 or 30 seconds is better. This is why the API calls may randomly fail. It can be a slow API sometimes.
Get 1:1 live consultation to help with your Xano or Adalo project meet.brevo.com/nathan-cox/adalo-xano-consultation-1-hour
Great helpful tuto. Instead of trying to remember and type the correct schema path (api_1.response.result.choices.message.content), just go to the response schema of the output when you run a successful test and hit the little copy button. Then head back to the inputs. For the content value, find again the relevant var but instead of selecting it, click on blue sub-path link and paste the schema in there, right-click and format document, then click define. Then magic happens, you'll see the whole schema deployed dynamically where you can go down the schema with a few clicks, until you reach and click 'content' which will populate the whole path for you like that: api_1.response.result.choices.0.message.content And you guessed it, no more errors about the array ;)
Good point! I was familiar with this but got into the habit of doing it manually.
This is awesome!!
Thank you
This might seem like an obvious question to ask in regards to accessing and using the OpenAI API Key and requests via OpenAI. I take it in order to begin using this you need to set up a paid plan with OpenAI to pay for the tokens and usage per chat request you might generate from your App?
Unless they changed it since you get $18 free credit when you sign up, which is quite a good amount
@@theadaloguy ahh OK thanks, I will create a new account and register with that and get a free trial account with the $18 credit.