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
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,28 @@ Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typ
84
84
85
85
Typed requests and responses provide autocomplete and documentation within your editor. If you would like to see type errors in VS Code to help catch bugs earlier, set `python.analysis.typeCheckingMode` to `basic`.
86
86
87
+
## Nested params
88
+
89
+
Nested parameters are dictionaries, typed using `TypedDict`, for example:
text="I agree not to tell anyone about the document.",
100
+
chunking_options={
101
+
"overlap_ratio": 0.1,
102
+
"overlap_tokens": 0,
103
+
"size": 512,
104
+
},
105
+
)
106
+
print(universal_classification.chunking_options)
107
+
```
108
+
87
109
## Handling errors
88
110
89
111
When the library is unable to connect to the API (for example, due to network connection problems or a timeout), a subclass of `isaacus.APIConnectionError` is raised.
0 commit comments