-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (36 loc) · 929 Bytes
/
Makefile
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
34
35
36
37
38
39
.PHONY: start, format, try
format:
poetry run black .
poetry run isort .
start:
poetry run python -m langchain_template_poe_fastapi
try:
curl -X 'POST' \
'http://0.0.0.0:8080/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{ \
"version": "1.0", \
"type": "query", \
"query": [ \
{ \
"message_id": "1", \
"role": "system", \
"content": "You are a helpful assistant.", \
"content_type": "text/markdown", \
"timestamp": 1678299819427621, \
"feedback": [] \
}, \
{ \
"message_id": "2", \
"role": "user", \
"content": "What is the capital of Nepal?", \
"content_type": "text/markdown", \
"timestamp": 1678299819427621, \
"feedback": [] \
} \
], \
"user_id": "u-1234abcd5678efgh", \
"conversation_id": "c-jklm9012nopq3456", \
"message_id": "2" \
}' -N