Skip to content

Commit 3b70a53

Browse files
committed
downgrade opeani
1 parent 3eefc49 commit 3b70a53

File tree

6 files changed

+680
-0
lines changed

6 files changed

+680
-0
lines changed
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
interactions:
2+
- request:
3+
body: '{"messages": [{"role": "user", "content": "Say this is a test three times"}],
4+
"model": "gpt-4", "stream": true}'
5+
headers:
6+
accept:
7+
- application/json
8+
accept-encoding:
9+
- gzip, deflate
10+
authorization:
11+
- Bearer test_openai_api_key
12+
connection:
13+
- keep-alive
14+
content-length:
15+
- '111'
16+
content-type:
17+
- application/json
18+
host:
19+
- api.openai.com
20+
user-agent:
21+
- AsyncOpenAI/Python 1.26.0
22+
x-stainless-arch:
23+
- arm64
24+
x-stainless-async:
25+
- async:asyncio
26+
x-stainless-lang:
27+
- python
28+
x-stainless-os:
29+
- MacOS
30+
x-stainless-package-version:
31+
- 1.26.0
32+
x-stainless-runtime:
33+
- CPython
34+
x-stainless-runtime-version:
35+
- 3.11.5
36+
method: POST
37+
uri: https://api.openai.com/v1/chat/completions
38+
response:
39+
body:
40+
string: 'data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]}
41+
42+
43+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"This"},"logprobs":null,"finish_reason":null}]}
44+
45+
46+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
47+
is"},"logprobs":null,"finish_reason":null}]}
48+
49+
50+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
51+
a"},"logprobs":null,"finish_reason":null}]}
52+
53+
54+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
55+
test"},"logprobs":null,"finish_reason":null}]}
56+
57+
58+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]}
59+
60+
61+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
62+
this"},"logprobs":null,"finish_reason":null}]}
63+
64+
65+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
66+
is"},"logprobs":null,"finish_reason":null}]}
67+
68+
69+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
70+
a"},"logprobs":null,"finish_reason":null}]}
71+
72+
73+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
74+
test"},"logprobs":null,"finish_reason":null}]}
75+
76+
77+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]}
78+
79+
80+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
81+
this"},"logprobs":null,"finish_reason":null}]}
82+
83+
84+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
85+
is"},"logprobs":null,"finish_reason":null}]}
86+
87+
88+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
89+
a"},"logprobs":null,"finish_reason":null}]}
90+
91+
92+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
93+
test"},"logprobs":null,"finish_reason":null}]}
94+
95+
96+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
97+
98+
99+
data: {"id":"chatcmpl-AfUeQFnD4Sq5TbvvNUu3dWWbGNTKh","object":"chat.completion.chunk","created":1734452634,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
100+
101+
102+
data: [DONE]
103+
104+
105+
'
106+
headers:
107+
CF-Cache-Status:
108+
- DYNAMIC
109+
CF-RAY:
110+
- 8f3842a47b01e1e4-MRS
111+
Connection:
112+
- keep-alive
113+
Content-Type:
114+
- text/event-stream; charset=utf-8
115+
Date:
116+
- Tue, 17 Dec 2024 16:23:54 GMT
117+
Server:
118+
- cloudflare
119+
Set-Cookie: test_set_cookie
120+
Transfer-Encoding:
121+
- chunked
122+
X-Content-Type-Options:
123+
- nosniff
124+
access-control-expose-headers:
125+
- X-Request-ID
126+
alt-svc:
127+
- h3=":443"; ma=86400
128+
openai-organization: test_openai_org_id
129+
openai-processing-ms:
130+
- '257'
131+
openai-version:
132+
- '2020-10-01'
133+
strict-transport-security:
134+
- max-age=31536000; includeSubDomains; preload
135+
x-ratelimit-limit-requests:
136+
- '10000'
137+
x-ratelimit-limit-tokens:
138+
- '1000000'
139+
x-ratelimit-remaining-requests:
140+
- '9999'
141+
x-ratelimit-remaining-tokens:
142+
- '999975'
143+
x-ratelimit-reset-requests:
144+
- 6ms
145+
x-ratelimit-reset-tokens:
146+
- 1ms
147+
x-request-id:
148+
- req_3f8afd6b13d1af96ca6967b2db1df302
149+
status:
150+
code: 200
151+
message: OK
152+
version: 1
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
interactions:
2+
- request:
3+
body: '{"prompt": "A charming and adorable baby sea otter. This small, fluffy
4+
creature is floating gracefully on its back, with its tiny webbed paws folded
5+
cutely over its fuzzy belly. It has big, round, innocent eyes that are brimming
6+
with youthful curiosity. As it blissfully floats on the calm, sparkling ocean
7+
surface under the glow of the golden sunset, it playfully tosses a shiny seashell
8+
from one paw to another, showcasing its playful and distinctively otter-like
9+
behavior.", "model": "dall-e-3"}'
10+
headers:
11+
accept:
12+
- application/json
13+
accept-encoding:
14+
- gzip, deflate
15+
authorization:
16+
- Bearer test_openai_api_key
17+
connection:
18+
- keep-alive
19+
content-length:
20+
- '498'
21+
content-type:
22+
- application/json
23+
host:
24+
- api.openai.com
25+
user-agent:
26+
- AsyncOpenAI/Python 1.26.0
27+
x-stainless-arch:
28+
- arm64
29+
x-stainless-async:
30+
- async:asyncio
31+
x-stainless-lang:
32+
- python
33+
x-stainless-os:
34+
- MacOS
35+
x-stainless-package-version:
36+
- 1.26.0
37+
x-stainless-runtime:
38+
- CPython
39+
x-stainless-runtime-version:
40+
- 3.11.5
41+
method: POST
42+
uri: https://api.openai.com/v1/images/generations
43+
response:
44+
body:
45+
string: "{\n \"created\": 1734452666,\n \"data\": [\n {\n \"revised_prompt\":
46+
\"Create an image of an adorable and charming baby sea otter. Depict this
47+
small, fluffy creature as it is floating gracefully on its back, with its
48+
tiny webbed paws folded cutely over its fuzzy belly. It should have big, round,
49+
innocent eyes filled with youthful curiosity. The otter is blissfully floating
50+
on the calm, sparkling surface of the ocean under the soft glow of a golden
51+
sunset. The baby otter is playfully tossing a shiny seashell from one paw
52+
to another, showcasing its playful and distinctively otter-like behavior.\",\n
53+
\ \"url\": \"https://oaidalleapiprodscus.blob.core.windows.net/private/org-Bj6XXxxFgkJeYFnhs2nXl0nr/user-HqmprrkKKvVVzITKBT4hXs1S/img-aIgV5pnPYZJQ9z5fSZMugn7A.png?st=2024-12-17T15%3A24%3A26Z&se=2024-12-17T17%3A24%3A26Z&sp=r&sv=2024-08-04&sr=b&rscd=inline&rsct=image/png&skoid=d505667d-d6c1-4a0a-bac7-5c84a87759f8&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-12-17T16%3A24%3A26Z&ske=2024-12-18T16%3A24%3A26Z&sks=b&skv=2024-08-04&sig=9yvZXsIRaMS3stEPputD0pPFj1im%2Be/sojbUxAQuDMk%3D\"\n
54+
\ }\n ]\n}\n"
55+
headers:
56+
CF-Cache-Status:
57+
- DYNAMIC
58+
CF-RAY:
59+
- 8f3843269a14e204-MRS
60+
Connection:
61+
- keep-alive
62+
Content-Type:
63+
- application/json
64+
Date:
65+
- Tue, 17 Dec 2024 16:24:26 GMT
66+
Server:
67+
- cloudflare
68+
Set-Cookie: test_set_cookie
69+
Transfer-Encoding:
70+
- chunked
71+
X-Content-Type-Options:
72+
- nosniff
73+
access-control-allow-origin:
74+
- '*'
75+
alt-svc:
76+
- h3=":443"; ma=86400
77+
content-length:
78+
- '1103'
79+
openai-organization: test_openai_org_id
80+
openai-processing-ms:
81+
- '11693'
82+
openai-version:
83+
- '2020-10-01'
84+
strict-transport-security:
85+
- max-age=31536000; includeSubDomains; preload
86+
x-request-id:
87+
- req_285e2cc3c6ad26b5e4305522c372b7fd
88+
status:
89+
code: 200
90+
message: OK
91+
version: 1
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
interactions:
2+
- request:
3+
body: '{"messages": [{"role": "user", "content": "Say this is a test three times"}],
4+
"model": "gpt-4", "stream": false}'
5+
headers:
6+
accept:
7+
- application/json
8+
accept-encoding:
9+
- gzip, deflate
10+
authorization:
11+
- Bearer test_openai_api_key
12+
connection:
13+
- keep-alive
14+
content-length:
15+
- '112'
16+
content-type:
17+
- application/json
18+
host:
19+
- api.openai.com
20+
user-agent:
21+
- OpenAI/Python 1.26.0
22+
x-stainless-arch:
23+
- arm64
24+
x-stainless-async:
25+
- 'false'
26+
x-stainless-lang:
27+
- python
28+
x-stainless-os:
29+
- MacOS
30+
x-stainless-package-version:
31+
- 1.26.0
32+
x-stainless-runtime:
33+
- CPython
34+
x-stainless-runtime-version:
35+
- 3.11.5
36+
method: POST
37+
uri: https://api.openai.com/v1/chat/completions
38+
response:
39+
body:
40+
string: "{\n \"id\": \"chatcmpl-AfUeNNtlbhtdnkTGLbmbH6heHpl8i\",\n \"object\":
41+
\"chat.completion\",\n \"created\": 1734452631,\n \"model\": \"gpt-4-0613\",\n
42+
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
43+
\"assistant\",\n \"content\": \"This is a test. This is a test. This
44+
is a test.\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
45+
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
46+
14,\n \"completion_tokens\": 15,\n \"total_tokens\": 29,\n \"prompt_tokens_details\":
47+
{\n \"cached_tokens\": 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\":
48+
{\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\":
49+
0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\":
50+
null\n}\n"
51+
headers:
52+
CF-Cache-Status:
53+
- DYNAMIC
54+
CF-RAY:
55+
- 8f38429158d50d9d-MRS
56+
Connection:
57+
- keep-alive
58+
Content-Type:
59+
- application/json
60+
Date:
61+
- Tue, 17 Dec 2024 16:23:52 GMT
62+
Server:
63+
- cloudflare
64+
Set-Cookie: test_set_cookie
65+
Transfer-Encoding:
66+
- chunked
67+
X-Content-Type-Options:
68+
- nosniff
69+
access-control-expose-headers:
70+
- X-Request-ID
71+
alt-svc:
72+
- h3=":443"; ma=86400
73+
content-length:
74+
- '775'
75+
openai-organization: test_openai_org_id
76+
openai-processing-ms:
77+
- '877'
78+
openai-version:
79+
- '2020-10-01'
80+
strict-transport-security:
81+
- max-age=31536000; includeSubDomains; preload
82+
x-ratelimit-limit-requests:
83+
- '10000'
84+
x-ratelimit-limit-tokens:
85+
- '1000000'
86+
x-ratelimit-remaining-requests:
87+
- '9999'
88+
x-ratelimit-remaining-tokens:
89+
- '999975'
90+
x-ratelimit-reset-requests:
91+
- 6ms
92+
x-ratelimit-reset-tokens:
93+
- 1ms
94+
x-request-id:
95+
- req_b9d7c2fd63f0bdacf61f4f4873a2bc44
96+
status:
97+
code: 200
98+
message: OK
99+
version: 1

0 commit comments

Comments
 (0)