Skip to content

Commit 9443c2f

Browse files
Update README.md to add on prem info (#150)
* Update README.md Add info about custom api endpoint for onprem * Update README.md --------- Co-authored-by: Luke Oliff <[email protected]>
1 parent 806769d commit 9443c2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Official Python SDK for [Deepgram](https://www.deepgram.com/). Power your apps w
1414
* [Examples](#examples)
1515
* [Testing](#testing)
1616
* [Configuration](#configuration)
17+
* [Custom API Endpoint] [#custom-api-endpoint]
1718
* [Transcription](#transcription)
1819
* [Remote Files](#remote-files)
1920
* [Local Files](#local-files)
@@ -111,6 +112,17 @@ DEEPGRAM_API_KEY = 'YOUR_API_KEY'
111112
deepgram = Deepgram(DEEPGRAM_API_KEY)
112113
```
113114

115+
## Custom API Endpoint
116+
117+
In order to point the SDK at a different API environment (e.g., for on-prem deployments), you can pass in an object setting the `api_url` when initializing the Deepgram client.
118+
119+
```py
120+
dg_client = Deepgram({
121+
"api_key": DEEPGRAM_API_KEY,
122+
"api_url": "http://localhost:8080/v1/listen"
123+
})
124+
```
125+
114126
# Transcription
115127

116128
## Remote Files

0 commit comments

Comments
 (0)