You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120
120
121
121
### Publish with a GitHub workflow
122
122
123
-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/not-diamond-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/Not-Diamond/not-diamond-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
optimizer= response.parse() # get the object that `optimizer.select_model()` would have returned
328
-
print(optimizer)
278
+
client= response.parse() # get the object that `retrieve_root()` would have returned
279
+
print(client)
329
280
```
330
281
331
-
These methods return an [`APIResponse`](https://github.com/stainless-sdks/not-diamond-python/tree/main/src/not_diamond/_response.py) object.
282
+
These methods return an [`APIResponse`](https://github.com/Not-Diamond/not-diamond-python/tree/main/src/not_diamond/_response.py) object.
332
283
333
-
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/not-diamond-python/tree/main/src/not_diamond/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
284
+
The async client returns an [`AsyncAPIResponse`](https://github.com/Not-Diamond/not-diamond-python/tree/main/src/not_diamond/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
334
285
335
286
#### `.with_streaming_response`
336
287
@@ -339,15 +290,7 @@ The above interface eagerly reads the full response body when you make the reque
339
290
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
340
291
341
292
```python
342
-
with client.optimizer.with_streaming_response.select_model(
343
-
llm_providers=[
344
-
{
345
-
"model": "model",
346
-
"provider": "provider",
347
-
}
348
-
],
349
-
messages=[{"foo": "string"}],
350
-
) as response:
293
+
with client.with_streaming_response.retrieve_root() as response:
351
294
print(response.headers.get("X-My-Header"))
352
295
353
296
for line in response.iter_lines():
@@ -442,7 +385,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
442
385
443
386
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
444
387
445
-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/not-diamond-python/issues) with questions, bugs, or suggestions.
388
+
We are keen for your feedback; please open an [issue](https://www.github.com/Not-Diamond/not-diamond-python/issues) with questions, bugs, or suggestions.
0 commit comments