@@ -15,23 +15,23 @@ interactions:
1515 Content-Length :
1616 - ' 327'
1717 User-Agent :
18- - Python-SDK/0.3.41
18+ - Python-SDK/0.4.5
1919 content-type :
2020 - application/json
2121 method : POST
2222 uri : https://staging-api.notdiamond.ai/v2/modelRouter/modelSelect
2323 response :
2424 body :
25- string : ' {"detail":"requestID=2a52f8d9-4a00-4045, Messages format invalid."}'
25+ string : ' {"detail":"Messages format invalid."}'
2626 headers :
2727 CF-RAY :
28- - 925cfc7e4c94d0ec-SOF
28+ - 982fb2ae5a686249-OTP
2929 Connection :
3030 - keep-alive
3131 Content-Type :
3232 - application/json
3333 Date :
34- - Tue, 25 Mar 2025 08:19:58 GMT
34+ - Mon, 22 Sep 2025 06:20:43 GMT
3535 Server :
3636 - cloudflare
3737 Transfer-Encoding :
@@ -41,131 +41,14 @@ interactions:
4141 cf-cache-status :
4242 - DYNAMIC
4343 rndr-id :
44- - 2a52f8d9-4a00-4045
44+ - 149da980-870a-4ae9
4545 vary :
4646 - Accept-Encoding
4747 x-render-origin-server :
4848 - uvicorn
49+ x-request-id :
50+ - 149da980-870a-4ae9
4951 status :
5052 code : 400
5153 message : Bad Request
52- - request :
53- body : ' {"messages": [{"role": "user", "content": "You are a world class software
54- developer. Write a merge sort in Python."}], "model": "gpt-3.5-turbo"}'
55- headers :
56- accept :
57- - application/json
58- accept-encoding :
59- - gzip, deflate, zstd
60- connection :
61- - keep-alive
62- content-length :
63- - ' 144'
64- content-type :
65- - application/json
66- host :
67- - api.openai.com
68- user-agent :
69- - OpenAI/Python 1.68.2
70- x-stainless-arch :
71- - x64
72- x-stainless-async :
73- - ' false'
74- x-stainless-lang :
75- - python
76- x-stainless-os :
77- - Linux
78- x-stainless-package-version :
79- - 1.68.2
80- x-stainless-read-timeout :
81- - ' 600'
82- x-stainless-retry-count :
83- - ' 0'
84- x-stainless-runtime :
85- - CPython
86- x-stainless-runtime-version :
87- - 3.12.3
88- method : POST
89- uri : https://api.openai.com/v1/chat/completions
90- response :
91- body :
92- string : " {\n \" id\" : \" chatcmpl-BEtnqQUemyAjI6LtIlcncVQkOpe7Z\" ,\n \" object\" :
93- \" chat.completion\" ,\n \" created\" : 1742890798,\n \" model\" : \" gpt-3.5-turbo-0125\" ,\n
94- \ \" choices\" : [\n {\n \" index\" : 0,\n \" message\" : {\n \" role\" :
95- \" assistant\" ,\n \" content\" : \" Sure! Here's a Python implementation
96- of the merge sort algorithm:\\ n\\ n```python\\ ndef merge_sort(arr):\\ n if
97- len(arr) > 1:\\ n mid = len(arr) // 2\\ n left_half = arr[:mid]\\ n
98- \ right_half = arr[mid:]\\ n\\ n merge_sort(left_half)\\ n merge_sort(right_half)\\ n\\ n
99- \ i = j = k = 0\\ n\\ n while i < len(left_half) and j < len(right_half):\\ n
100- \ if left_half[i] < right_half[j]:\\ n arr[k] = left_half[i]\\ n
101- \ i += 1\\ n else:\\ n arr[k] = right_half[j]\\ n
102- \ j += 1\\ n k += 1\\ n\\ n while i < len(left_half):\\ n
103- \ arr[k] = left_half[i]\\ n i += 1\\ n k +=
104- 1\\ n\\ n while j < len(right_half):\\ n arr[k] = right_half[j]\\ n
105- \ j += 1\\ n k += 1\\ n\\ n return arr\\ n\\ n# Example
106- usage\\ narr = [38, 27, 43, 3, 9, 82, 10]\\ nsorted_arr = merge_sort(arr)\\ nprint(sorted_arr)\\ n```\\ n\\ nThis
107- implementation recursively divides the input array into two halves, sorts
108- each half, and then merges the two sorted halves back together. The time complexity
109- of the merge sort algorithm is O(n*log(n)).\" ,\n \" refusal\" : null,\n
110- \ \" annotations\" : []\n },\n \" logprobs\" : null,\n \" finish_reason\" :
111- \" stop\"\n }\n ],\n \" usage\" : {\n \" prompt_tokens\" : 22,\n \" completion_tokens\" :
112- 284,\n \" total_tokens\" : 306,\n \" prompt_tokens_details\" : {\n \" cached_tokens\" :
113- 0,\n \" audio_tokens\" : 0\n },\n \" completion_tokens_details\" :
114- {\n \" reasoning_tokens\" : 0,\n \" audio_tokens\" : 0,\n \" accepted_prediction_tokens\" :
115- 0,\n \" rejected_prediction_tokens\" : 0\n }\n },\n \" service_tier\" :
116- \" default\" ,\n \" system_fingerprint\" : null\n }\n "
117- headers :
118- CF-RAY :
119- - 925cfc813c2f8ee4-SOF
120- Connection :
121- - keep-alive
122- Content-Type :
123- - application/json
124- Date :
125- - Tue, 25 Mar 2025 08:20:00 GMT
126- Server :
127- - cloudflare
128- Set-Cookie :
129- - __cf_bm=UEnUJt97I.W2M053iPJIuvRvZOcwuUWjzQW6qKNUmVc-1742890800-1.0.1.1-dW7G4PvCkye3q5wabFIynaD0ixsaI_OuDvTKpF0CudA4euSxw_d5ymUasIXCvhYtjLWseFyJ0zhp9o5UYh4JoWMWJG9pS7EIN.JG1Cy3Tb8;
130- path=/; expires=Tue, 25-Mar-25 08:50:00 GMT; domain=.api.openai.com; HttpOnly;
131- Secure; SameSite=None
132- - _cfuvid=G1lGnlWCgXi9GfSobTDl6zs5zw.iQ3T1anPBgHzIFec-1742890800832-0.0.1.1-604800000;
133- path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
134- Transfer-Encoding :
135- - chunked
136- X-Content-Type-Options :
137- - nosniff
138- access-control-expose-headers :
139- - X-Request-ID
140- alt-svc :
141- - h3=":443"; ma=86400
142- cf-cache-status :
143- - DYNAMIC
144- content-length :
145- - ' 1932'
146- openai-organization :
147- - not-diamond-bdz8cg
148- openai-processing-ms :
149- - ' 2404'
150- openai-version :
151- - ' 2020-10-01'
152- strict-transport-security :
153- - max-age=31536000; includeSubDomains; preload
154- x-ratelimit-limit-requests :
155- - ' 10000'
156- x-ratelimit-limit-tokens :
157- - ' 50000000'
158- x-ratelimit-remaining-requests :
159- - ' 9999'
160- x-ratelimit-remaining-tokens :
161- - ' 49999979'
162- x-ratelimit-reset-requests :
163- - 6ms
164- x-ratelimit-reset-tokens :
165- - 0s
166- x-request-id :
167- - req_5edfccb03d05381141520087c2d01a20
168- status :
169- code : 200
170- message : OK
17154version : 1
0 commit comments