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
See an example from ElevenLabs using this process in their [Python SDK](https://github.com/elevenlabs/elevenlabs-python/blob/main/src/elevenlabs/client.py).
@@ -64,9 +52,9 @@ To get started adding custom code:
64
52
<Steps>
65
53
### Update `generators.yml` configuration
66
54
67
-
To add a custom method to the Python SDK, you will need to configure the
68
-
generator to output the client in a file called `base_client.py`. Then, you can
69
-
extend the base client and add whatever methods you want.
55
+
Name your Fern-generated client something like `BaseClient`to reflect
56
+
that this client will be extended. Configure the generator to output the
57
+
client in a file called `base_client.py`.
70
58
71
59
```yaml {4-8} title="generators.yml"
72
60
- name: fernapi/fern-python-sdk
@@ -121,7 +109,7 @@ To get started adding custom code:
121
109
122
110
### Consume the method
123
111
124
-
Now your users can consume the helper function by importing it from the SDK:
0 commit comments