Skip to content

Commit 488d540

Browse files
stainless-app[bot]Stainless Bot
authored and
Stainless Bot
committed
feat(api): OpenAPI spec update via Stainless API (#159)
1 parent e64a530 commit 488d540

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release-doctor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release Doctor
22
on:
33
pull_request:
4+
branches:
5+
- main
46
workflow_dispatch:
57

68
jobs:

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,12 @@ client = PromptFoundry(
377377
)
378378
```
379379

380+
You can also customize the client on a per-request basis by using `with_options()`:
381+
382+
```python
383+
client.with_options(http_client=DefaultHttpxClient(...))
384+
```
385+
380386
### Managing HTTP resources
381387

382388
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.

0 commit comments

Comments
 (0)