Skip to content

Commit

Permalink
chore: clarify readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierhalupczok committed Jun 20, 2024
1 parent c718ede commit 0183ade
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,17 @@ Run your application and this will allow you to test the assistant.

Then you can test the assistant.
1. First, you need to create a thread. You can create one
by sending a POST request to the `/assistant/threads` endpoint with the **empty body**.
by sending a POST request to the `/assistant/threads` endpoint with the **empty object in the body**.
2. Then you can send a message to the assistant by sending a POST request to the `/assistant/chat` endpoint with the following body:
```json
{
"threadId": "your-thread-id",
"content": "Hello, how are you?"
}
```
3. The assistant will respond with a message. You can send more messages to the assistant by sending a POST request to the `/assistant/chat` endpoint with the same body as in step 2.

Congrats! You have successfully integrated the AI Assistant library into your NestJS application. 🎉

---

Expand Down

0 comments on commit 0183ade

Please sign in to comment.