robosoft-ai / SMACC2

An Event-Driven, Asynchronous, Behavioral State Machine Library for ROS2 (Robotic Operating System) applications written in C++
https://smacc.dev
Apache License 2.0
237 stars 40 forks source link

OpenAI example client ported to SMACC #557

Closed yassiezar closed 2 months ago

yassiezar commented 2 months ago

Porting example OpenAI request node over from here. Includes several improvements to the HTTP client library, such as adding headers and more robust POST request support.

To run this example, you must set the OPENAI_API_KEY env variable to your OpenAI API ket, and the OPENAI_IMG_PATH variable to where your test image resides you want to test (in this case we're asking about a wood table)