You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,14 +168,17 @@ Run your application and this will allow you to test the assistant.
168
168
169
169
Then you can test the assistant.
170
170
1. First, you need to create a thread. You can create one
171
-
by sending a POST request to the `/assistant/threads` endpoint with the **empty body**.
171
+
by sending a POST request to the `/assistant/threads` endpoint with the **empty object in the body**.
172
172
2. Then you can send a message to the assistant by sending a POST request to the `/assistant/chat` endpoint with the following body:
173
173
```json
174
174
{
175
175
"threadId": "your-thread-id",
176
176
"content": "Hello, how are you?"
177
177
}
178
178
```
179
+
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.
180
+
181
+
Congrats! You have successfully integrated the AI Assistant library into your NestJS application. 🎉
0 commit comments