Skip to content

Commit

Permalink
chore(transcription): add download and unzip utils functions
Browse files Browse the repository at this point in the history
chore(transcription): add download and unzip utils functions

chore(transcription): download & unzip models fixtures
  • Loading branch information
lutangar committed May 31, 2024
1 parent d1ad75e commit 31fd92a
Show file tree
Hide file tree
Showing 14 changed files with 112 additions and 166,953 deletions.
9 changes: 9 additions & 0 deletions packages/server-commands/src/requests/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ export function makeRawRequest (options: {
return makeGetRequest(reqOptions)
}

export const makeFileRequest = (url: string) => {
return makeRawRequest({
url,
responseType: 'arraybuffer',
redirects: 1,
expectedStatus: HttpStatusCode.OK_200
})
}

export function makeGetRequest (options: CommonRequestParams & {
query?: any
rawQuery?: string
Expand Down
Binary file not shown.

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 31fd92a

Please sign in to comment.