Hey guys, getting stuck into messing around with the OpenAI extension and I’m looking to take the message output and use it as an array variable but the output does not seem to be formatting correctly in the variable.
Is there way to solve this or a better way to be managing the output?
It actually gives you the right array, but it’s with \n which is new line characters. If you post it here in a code block, I can give you a method to get this into a proper array. It’s probably gonna need some JSON.parse or something. It seems like now it’s text format?
I would use the REST API completion, OpenAI has changed its version modifing the outputs completly !
Are keys kept private if using the REST API?
I would rather use a proxy (edge function, langserve, LiteLLM…) or theirs
just make sure with the console log