-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.http
51 lines (39 loc) · 1.19 KB
/
test.http
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
40
41
42
43
44
45
46
47
48
49
50
51
### Simple Whois Completion(Local)
GET http://localhost:7071/api/whois/Turing HTTP/1.1
### Simple Ask Completion (Local)
POST http://localhost:7071/api/ask HTTP/1.1
content-type: application/json
{
"prompt": "Tell me two most popular programming features of Azure Functions"
}
### Simple Ask Completion (Cloud)
### .gitignore this file if and when you set key
POST https://<your-function-name>.azurewebsites.net/api/ask HTTP/1.1
content-type: application/json
x-functions-key: <your-function-key>
{
"prompt": "Tell me two most popular programming features of Azure Functions"
}
### Stateful Chatbot
### CreateChatBot
PUT http://localhost:7071/api/chats/abc123
Content-Type: application/json
{
"name": "Sample ChatBot",
"description": "This is a sample chatbot."
}
### PostChat
POST http://localhost:7071/api/chats/abc123
Content-Type: application/json
{
"message": "Hello, how can I assist you today?"
}
### PostChat
POST http://localhost:7071/api/chats/abc123
Content-Type: application/json
{
"message": "Need help with directions from Redmond to SeaTac?"
}
### GetChatState
GET http://localhost:7071/api/chats/abc123?timestampUTC=2024-01-15T22:00:00
Content-Type: application/json