-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
33 lines (27 loc) · 853 Bytes
/
test.http
File metadata and controls
33 lines (27 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###
# V2 (ChatGPT-like) examples
# If you set DOCASSIST_TOKEN on the server, add:
# Authorization: Bearer <token>
### Init / ensure session
POST http://localhost:3000/v2/init
Content-Type: application/json
{
"docId": "demo-doc-id",
"instructions": "You are my writing partner. Reply in Hungarian unless I ask English."
}
### Sync document into knowledge (vector store)
POST http://localhost:3000/v2/sync-doc
Content-Type: application/json
{
"docId": "demo-doc-id",
"docTitle": "Demo Document",
"docText": "This is the current document content. It can be long.",
"instructions": "You are my writing partner."
}
### Chat (uses conversation state + file_search over vector store)
POST http://localhost:3000/v2/chat
Content-Type: application/json
{
"docId": "demo-doc-id",
"userMessage": "Summarize the document in 5 bullet points."
}