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
Configure SDK variables that are injected into endpoint paths. These variables are provided when constructing the client and reused across requests. For example:
144
+
145
+
```yaml
146
+
# OpenAPI/Swagger spec
147
+
x-fern-sdk-variables:
148
+
project_id:
149
+
type: string
150
+
description: The project ID to use for requests
151
+
152
+
# SDK Usage
153
+
client = Client(project_id="my-project")
154
+
client.some_endpoint() # Will use project_id in path
155
+
```
156
+
157
+
This was added in version 4.24.0 of the Python generator.
0 commit comments