This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add BAA-covered Whisper * fix: add dummy environment variables for Azure client
- Loading branch information
1 parent
333daf8
commit 32d1863
Showing
8 changed files
with
51 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { AzureKeyCredential, OpenAIClient } from '@azure/openai'; | ||
import { | ||
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT, | ||
AZURE_DOCUMENT_INTELLIGENCE_KEY, | ||
AZURE_OPENAI_API_KEY, | ||
AZURE_OPENAI_ENDPOINT | ||
} from '$lib/server/secrets'; | ||
import { DocumentAnalysisClient } from '@azure/ai-form-recognizer'; | ||
|
||
export const azureOpenai = new OpenAIClient( | ||
AZURE_OPENAI_ENDPOINT, | ||
new AzureKeyCredential(AZURE_OPENAI_API_KEY) | ||
); | ||
|
||
export const azureDocumentIntelligence = new DocumentAnalysisClient( | ||
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT, | ||
new AzureKeyCredential(AZURE_DOCUMENT_INTELLIGENCE_KEY) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters