@aj-archipelago/cortex 1.1.10 → 1.1.11

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.
@@ -66,7 +66,8 @@ async function downloadFile(url, outputPath) {
66
66
  }
67
67
  }
68
68
 
69
- async function splitMediaFile(inputPath, chunkDurationInSeconds = 600 - 100) {
69
+ // Split a media file into chunks of max 500 seconds
70
+ async function splitMediaFile(inputPath, chunkDurationInSeconds = 500) {
70
71
  try {
71
72
  // Create unique folder
72
73
  const uniqueOutputPath = generateUniqueFolderName();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aj-archipelago/cortex",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.",
5
5
  "private": false,
6
6
  "repository": {
@@ -25,7 +25,7 @@ if(WHISPER_TS_API_URL){
25
25
  logger.warn(`WHISPER API URL not set using default OpenAI API Whisper`);
26
26
  }
27
27
 
28
- const OFFSET_CHUNK = 1000 * 60 * 10; // 10 minutes for each chunk
28
+ const OFFSET_CHUNK = 1000 * 500; // 500 seconds chunk offset
29
29
 
30
30
  async function deleteTempPath(path) {
31
31
  try {