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
***api:** update via SDK Studio ([2863c6c](https://github.com/isaacus-dev/isaacus-python/commit/2863c6c6f72258b53649f63cc8cb2e4f480f4818))
16
+
***client:** allow passing `NotGiven` for body ([#6](https://github.com/isaacus-dev/isaacus-python/issues/6)) ([539267b](https://github.com/isaacus-dev/isaacus-python/commit/539267b95ab1a193db15ba46dd2fed6d67b994c9))
17
+
18
+
19
+
### Bug Fixes
20
+
21
+
* asyncify on non-asyncio runtimes ([268752f](https://github.com/isaacus-dev/isaacus-python/commit/268752f5baa48fff9ebd30ed739cc5765f43dab1))
22
+
***client:** mark some request bodies as optional ([539267b](https://github.com/isaacus-dev/isaacus-python/commit/539267b95ab1a193db15ba46dd2fed6d67b994c9))
* update URLs from stainlessapi.com to stainless.com ([#10](https://github.com/isaacus-dev/isaacus-python/issues/10)) ([7e625b2](https://github.com/isaacus-dev/isaacus-python/commit/7e625b262c4e480379ddbe5bd2ca983f83c90988))
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
37
+
text="I agree not to tell anyone about the document.",
41
38
)
42
39
print(universal_classification.chunks)
43
40
```
44
41
45
-
While you can provide a `bearer_token` keyword argument,
42
+
While you can provide an `api_key` keyword argument,
46
43
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
47
-
to add `ISAACUS_API_KEY="My Bearer Token"` to your `.env` file
48
-
so that your Bearer Token is not stored in source control.
44
+
to add `ISAACUS_API_KEY="My API Key"` to your `.env` file
45
+
so that your API Key is not stored in source control.
49
46
50
47
## Async usage
51
48
@@ -57,15 +54,15 @@ import asyncio
57
54
from isaacus import AsyncIsaacus
58
55
59
56
client = AsyncIsaacus(
60
-
bearer_token=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
57
+
api_key=os.environ.get("ISAACUS_API_KEY"), # This is the default and can be omitted
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
65
+
text="I agree not to tell anyone about the document.",
69
66
)
70
67
print(universal_classification.chunks)
71
68
@@ -101,9 +98,9 @@ client = Isaacus()
101
98
102
99
try:
103
100
client.classifications.universal.create(
104
-
model="kanon-uniclassifier",
101
+
model="kanon-universal-classifier",
105
102
query="This is a confidentiality clause.",
106
-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
103
+
text="I agree not to tell anyone about the document.",
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
150
+
text="I agree not to tell anyone about the document.",
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
177
+
text="I agree not to tell anyone about the document.",
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
222
+
text="I agree not to tell anyone about the document.",
226
223
)
227
224
print(response.headers.get('X-My-Header'))
228
225
@@ -242,9 +239,9 @@ To stream the response body, use `.with_streaming_response` instead, which requi
242
239
243
240
```python
244
241
with client.classifications.universal.with_streaming_response.create(
245
-
model="kanon-uniclassifier",
242
+
model="kanon-universal-classifier",
246
243
query="This is a confidentiality clause.",
247
-
text="The Supplier agrees not to disclose to any person, other than the Customer, any Confidential Information relating to the Contract or the Goods and/or Services, without prior written approval from the Customer.",
244
+
text="I agree not to tell anyone about the document.",
Copy file name to clipboardExpand all lines: SECURITY.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
## Reporting Security Issues
4
4
5
-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5
+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
6
6
7
-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7
+
To report a security issue, please contact the Stainless team at security@stainless.com.
0 commit comments