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
Additionally, the `headers` property on `APIError` objects is now an instance of the Web [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) class. It was previously defined as `Record<string, string | null | undefined>`.
40
40
41
+
### Named path parameters
42
+
43
+
Methods that take multiple path parameters typically now use named instead of positional arguments for better clarity and to prevent a footgun where it was easy to accidentally pass arguments in the incorrect order.
44
+
45
+
For example, for a method that would call an endpoint at `/v1/parents/{parent_id}/children/{child_id}`, only the _last_ path parameter is positional and the rest must be passed as named arguments.
Path params are now properly encoded by default. If you were manually encoding path parameters before giving them to the SDK, you must now stop doing that and pass the
@@ -73,6 +92,7 @@ This affects the following methods:
73
92
-`client.endpoints.list()`
74
93
-`client.endpoints.listHardware()`
75
94
-`client.evals.list()`
95
+
-`client.rl.trainingSessions.list()`
76
96
77
97
### Removed `httpAgent` in favor of `fetchOptions`
0 commit comments