@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/index-frontend.cjs +8 -10
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +8 -10
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +9 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/test.js +8 -8
- package/dist/test.js.map +1 -1
- package/dist/types/llm-openai.d.ts +1 -8
- package/dist/types/llm-openai.d.ts.map +1 -1
- package/dist/types/market-time.d.ts +0 -1
- package/dist/types/market-time.d.ts.map +1 -1
- package/dist/types/types/llm-types.d.ts +7 -0
- package/dist/types/types/llm-types.d.ts.map +1 -1
- package/dist/types-frontend/llm-openai.d.ts +1 -8
- package/dist/types-frontend/llm-openai.d.ts.map +1 -1
- package/dist/types-frontend/market-time.d.ts +0 -1
- package/dist/types-frontend/market-time.d.ts.map +1 -1
- package/dist/types-frontend/types/llm-types.d.ts +7 -0
- package/dist/types-frontend/types/llm-types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/package.json
CHANGED
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 {
|