Skip to content

Commit e1c0260

Browse files
authored
Update README.md
1 parent 3d08131 commit e1c0260

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,27 @@ Set it as an environment variable: `export OPENAI_API_KEY="..."`
2222

2323
### Dependencies
2424

25-
`sudo apt install -y libcurl4-openssl-dev nlohmann-json3-dev libb64-dev`
25+
`sudo apt install -y libcurl4-openssl-dev`
26+
27+
`sudo apt install -y nlohmann-json3-dev`
28+
29+
`sudo apt install -y libb64-dev`
2630

2731
## Run
2832

2933
Here's a quick example:
3034

3135
`ros2 run ros2_openai_server openai_server`
3236

33-
Send it a prompt. Here's an example that returns a bool from a yes/no question. Not that the `image` field of the service request may be left empty.
37+
Send it a prompt. Here's an example that returns a bool from a yes/no question. Note that the `image` field of the service request may be left empty...
3438

3539
`ros2 service call /openai_server ai_msgs/srv/BoolResponse prompt:\ "Are you a pirate? Please respond with a one-word answer, yes or no"`
3640

37-
Here's an example that returns a full string.
41+
Here's an example that returns a full string...
3842

3943
`ros2 service call /openai_string_response ai_msgs/srv/StringResponse prompt:\ "Are you a pirate?"`
4044

41-
There's an example client which sends an image of a wooden table and prompts whether it is indeed a wooden table:
45+
Here's an example client which sends an image of a wooden table and prompts whether it is indeed a wooden table:
4246

4347
`ros2 run ros2_openai_server example_client`
4448

0 commit comments

Comments
 (0)