/
SuccessfulCompletion-Hello.json
60 lines (60 loc) · 1.33 KB
/
SuccessfulCompletion-Hello.json
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
52
53
54
55
56
57
58
59
60
{
"consumer": {
"name": "bot"
},
"provider": {
"name": "openai"
},
"interactions": [
{
"description": "Request completion from OpenAI with a user message 'Hello'",
"request": {
"method": "POST",
"path": "/v1/chat/completions",
"headers": {
"Content-Type": "application/json"
},
"body": {
"model": "gpt-3.5-turbo-0125",
"prompt": "Hello!",
"max_tokens": 50,
"n": 1,
"stop": null,
"temperature": 0.5
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0125",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello there, how may I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}
}
}
],
"metadata": {
"pactSpecification": {
"version": "2.0.0"
}
}
}