Skip to content

Commit

Permalink
Update README.md to add on prem info (#150)
Browse files Browse the repository at this point in the history
* Update README.md

Add info about custom api endpoint for onprem

* Update README.md

---------

Co-authored-by: Luke Oliff <[email protected]>
  • Loading branch information
SandraRodgers and lukeocodes authored Oct 11, 2023
1 parent 806769d commit 9443c2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Official Python SDK for [Deepgram](https://www.deepgram.com/). Power your apps w
* [Examples](#examples)
* [Testing](#testing)
* [Configuration](#configuration)
* [Custom API Endpoint] [#custom-api-endpoint]
* [Transcription](#transcription)
* [Remote Files](#remote-files)
* [Local Files](#local-files)
Expand Down Expand Up @@ -111,6 +112,17 @@ DEEPGRAM_API_KEY = 'YOUR_API_KEY'
deepgram = Deepgram(DEEPGRAM_API_KEY)
```

## Custom API Endpoint

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.

```py
dg_client = Deepgram({
"api_key": DEEPGRAM_API_KEY,
"api_url": "http://localhost:8080/v1/listen"
})
```

# Transcription

## Remote Files
Expand Down

0 comments on commit 9443c2f

Please sign in to comment.