@discomedia/utils 1.0.14 → 1.0.16

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.
package/dist/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.14",
6
+ "version": "1.0.16",
7
7
  "author": "Disco Media",
8
8
  "description": "Utility functions used in Disco Media apps",
9
9
  "always-build-npm": true,
package/dist/test.js CHANGED
@@ -7868,7 +7868,7 @@ const makeResponsesAPICall = async (input, options = {}) => {
7868
7868
  * });
7869
7869
  */
7870
7870
  async function makeLLMCall(input, options = {}) {
7871
- const { apiKey, model = DEFAULT_MODEL$1, responseFormat = 'text', tools, useCodeInterpreter = false, useWebSearch = false, imageBase64, imageDetail = 'high', context } = options;
7871
+ const { apiKey, model = DEFAULT_MODEL$1, responseFormat = 'text', tools, useCodeInterpreter = false, useWebSearch = false, imageBase64, imageDetail = 'high', context, } = options;
7872
7872
  // Validate model
7873
7873
  const normalizedModel = normalizeModelName(model);
7874
7874
  if (!isSupportedModel(normalizedModel)) {
@@ -7884,7 +7884,7 @@ async function makeLLMCall(input, options = {}) {
7884
7884
  conversationMessages.push({
7885
7885
  role: contextMsg.role,
7886
7886
  content: contextMsg.content,
7887
- type: 'message'
7887
+ type: 'message',
7888
7888
  });
7889
7889
  }
7890
7890
  // Add current input message
@@ -7898,9 +7898,9 @@ async function makeLLMCall(input, options = {}) {
7898
7898
  type: 'input_image',
7899
7899
  detail: imageDetail,
7900
7900
  image_url: imageBase64.startsWith('data:') ? imageBase64 : `data:image/webp;base64,${imageBase64}`,
7901
- }
7901
+ },
7902
7902
  ],
7903
- type: 'message'
7903
+ type: 'message',
7904
7904
  });
7905
7905
  }
7906
7906
  else {
@@ -7908,7 +7908,7 @@ async function makeLLMCall(input, options = {}) {
7908
7908
  conversationMessages.push({
7909
7909
  role: 'user',
7910
7910
  content: input,
7911
- type: 'message'
7911
+ type: 'message',
7912
7912
  });
7913
7913
  }
7914
7914
  processedInput = conversationMessages;
@@ -7924,10 +7924,10 @@ async function makeLLMCall(input, options = {}) {
7924
7924
  type: 'input_image',
7925
7925
  detail: imageDetail,
7926
7926
  image_url: imageBase64.startsWith('data:') ? imageBase64 : `data:image/webp;base64,${imageBase64}`,
7927
- }
7927
+ },
7928
7928
  ],
7929
- type: 'message'
7930
- }
7929
+ type: 'message',
7930
+ },
7931
7931
  ];
7932
7932
  }
7933
7933
  else {