diff --git a/fern/products/sdks/overview/python/configuration.mdx b/fern/products/sdks/overview/python/configuration.mdx index ec8d1dde9..17a5d174e 100644 --- a/fern/products/sdks/overview/python/configuration.mdx +++ b/fern/products/sdks/overview/python/configuration.mdx @@ -11,7 +11,7 @@ groups: local: generators: - name: fernapi/fern-python - version: 0.7.1 + version: ^4.24.0 # Required for SDK variables support config: client: class_name: "YourClient" @@ -23,6 +23,10 @@ groups: + The client configuration object allows you to customize the generated client class. Available options: + + - `class_name`: Name of the generated client class + - `sdk_variables`: Automatically inject variables into endpoint paths from client initialization @@ -32,6 +36,19 @@ groups: + + Add custom extension headers to API requests. Headers can be specified in OpenAPI using `x-fern-sdk-variables`. For example: + + ```yaml + x-fern-sdk-variables: + project_id: + type: string + description: "The project ID to use for all requests" + ``` + + The variable will be automatically injected into endpoint paths that contain the matching parameter name. + + If you want to add custom dependencies to your generated SDK, you can specify them using this configuration. For example, to add a dependency on boto3, your config would look like: ```