@premai/api-sdk 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,7 @@ type DeepgramAudioTranscriptionParams = {
7
7
  file: Uploadable;
8
8
  model: `deepgram/${string}`;
9
9
  diarize?: boolean;
10
+ smart_format?: boolean;
10
11
  };
11
12
  interface AudioTranslationParams {
12
13
  file: Uploadable;
package/dist/cli.cjs CHANGED
@@ -260,7 +260,8 @@ async function preprocessAudioRequest(body, encryptionKeys) {
260
260
  const isDeepgram = body.model.startsWith("deepgram/");
261
261
  const requestBody = isDeepgram ? {
262
262
  model: body.model,
263
- diarize: body.diarize
263
+ diarize: body.diarize,
264
+ smart_format: body.smart_format
264
265
  } : {
265
266
  model: body.model,
266
267
  language: body.language,
@@ -243,7 +243,8 @@ async function preprocessAudioRequest(body, encryptionKeys) {
243
243
  const isDeepgram = body.model.startsWith("deepgram/");
244
244
  const requestBody = isDeepgram ? {
245
245
  model: body.model,
246
- diarize: body.diarize
246
+ diarize: body.diarize,
247
+ smart_format: body.smart_format
247
248
  } : {
248
249
  model: body.model,
249
250
  language: body.language,
@@ -5253,7 +5253,8 @@ async function preprocessAudioRequest(body, encryptionKeys) {
5253
5253
  const isDeepgram = body.model.startsWith("deepgram/");
5254
5254
  const requestBody = isDeepgram ? {
5255
5255
  model: body.model,
5256
- diarize: body.diarize
5256
+ diarize: body.diarize,
5257
+ smart_format: body.smart_format
5257
5258
  } : {
5258
5259
  model: body.model,
5259
5260
  language: body.language,
package/dist/index.cjs CHANGED
@@ -324,7 +324,8 @@ async function preprocessAudioRequest(body, encryptionKeys) {
324
324
  const isDeepgram = body.model.startsWith("deepgram/");
325
325
  const requestBody = isDeepgram ? {
326
326
  model: body.model,
327
- diarize: body.diarize
327
+ diarize: body.diarize,
328
+ smart_format: body.smart_format
328
329
  } : {
329
330
  model: body.model,
330
331
  language: body.language,
package/dist/index.mjs CHANGED
@@ -246,7 +246,8 @@ async function preprocessAudioRequest(body, encryptionKeys) {
246
246
  const isDeepgram = body.model.startsWith("deepgram/");
247
247
  const requestBody = isDeepgram ? {
248
248
  model: body.model,
249
- diarize: body.diarize
249
+ diarize: body.diarize,
250
+ smart_format: body.smart_format
250
251
  } : {
251
252
  model: body.model,
252
253
  language: body.language,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "homepage": "https://github.com/premai-io/api-sdk-ts",
6
6
  "name": "@premai/api-sdk",
7
- "version": "1.0.39",
7
+ "version": "1.0.41",
8
8
  "main": "./dist/index.cjs",
9
9
  "bin": {
10
10
  "pcci-proxy": "./dist/cli.cjs"
@@ -65,7 +65,7 @@
65
65
  "@noble/curves": "^1.8.1",
66
66
  "@noble/hashes": "^1.7.1",
67
67
  "@noble/post-quantum": "^0.5.2",
68
- "@premai/reticle": "^0.4.4",
68
+ "@premai/reticle": "^0.4.6",
69
69
  "bare-abort-controller": "^1.1.1",
70
70
  "bare-crypto": "^1.13.5",
71
71
  "bare-encoding": "^1.0.3",