-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreset-openai-responses.json
67 lines (67 loc) · 1.97 KB
/
preset-openai-responses.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
61
62
63
64
65
66
67
[
{
"httpRequest": {
"method": "POST",
"path": "/chat/completions"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"id": "chatcmpl-6lX3c8j6jNfOo0zHvX56A1E7",
"object": "chat.completion",
"created": 1677628902,
"model": "gpt-4-0314",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "This is a mock response from the chat completion endpoint."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 14,
"total_tokens": 23
}
}
}
},
{
"httpRequest": {
"method": "POST",
"path": "/images/generations"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"id": "imggen-9X3c8j6jNfOo0zHvX56A1E7",
"object": "image.generation",
"created": 1677628902,
"model": "dall-e-2024",
"data": [
{
"url": "https://repository-images.githubusercontent.com/516708998/571919ae-d303-406d-8098-af4b2d2fb6be"
}
],
"usage": {
"prompt_tokens": 15,
"completion_tokens": 1,
"total_tokens": 16
}
}
}
}
]