VL.OpenAI http

Here is a simple set of nodes help to request services from OpenAI’s API via http requests.
All you need is an API key and some free time to play around.

Currently, supports:
Text generation
https://platform.openai.com/docs/guides/text-generation

and Image generation
https://platform.openai.com/docs/guides/images?context=node

Thanks @sebescudie for the SimpleHTTP and @devvvvs for MessagePack

9 Likes

Hello Amir,
Your nodes are very helpful thank you ! I recently have the issue that the ParseResponse node dosent process the output of the TextGeneration anymore. It happens in my big patch aswell as in the sample patch your provided. maybe you can see why it dosent seem to work or have an idea for a fix i can try,

Thank you :)

Hey @Adrenalina
I think their response structure has been changed since 10 months ago!

A quick fix on your side would be:

Go here:
https://platform.openai.com/docs/api-reference/chat

Copy the content of the response field, then follow the steps mentioned in the following post:

I will update the repo as soon as I can, but it might take a bit of time on my end.

1 Like

Thank you very much. it was a journey but i could extract what needed with this :)

1 Like