@langchain/google-common 0.0.6 → 0.0.8
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/utils/common.cjs +0 -1
- package/dist/utils/common.js +0 -1
- package/dist/utils/gemini.cjs +0 -1
- package/dist/utils/gemini.js +0 -1
- package/package.json +1 -1
package/dist/utils/common.cjs
CHANGED
|
@@ -77,7 +77,6 @@ function copyAIModelParamsInto(params, options, target) {
|
|
|
77
77
|
throw new Error(`Cannot mix structured tools with Gemini tools.\nReceived ${structuredOutputTools.length} structured tools and ${geminiTools.length} Gemini tools.`);
|
|
78
78
|
}
|
|
79
79
|
ret.tools = geminiTools ?? structuredOutputTools;
|
|
80
|
-
console.log(ret);
|
|
81
80
|
return ret;
|
|
82
81
|
}
|
|
83
82
|
exports.copyAIModelParamsInto = copyAIModelParamsInto;
|
package/dist/utils/common.js
CHANGED
|
@@ -73,7 +73,6 @@ export function copyAIModelParamsInto(params, options, target) {
|
|
|
73
73
|
throw new Error(`Cannot mix structured tools with Gemini tools.\nReceived ${structuredOutputTools.length} structured tools and ${geminiTools.length} Gemini tools.`);
|
|
74
74
|
}
|
|
75
75
|
ret.tools = geminiTools ?? structuredOutputTools;
|
|
76
|
-
console.log(ret);
|
|
77
76
|
return ret;
|
|
78
77
|
}
|
|
79
78
|
export function modelToFamily(modelName) {
|
package/dist/utils/gemini.cjs
CHANGED
|
@@ -179,7 +179,6 @@ function toolMessageToContent(message, prevMessage) {
|
|
|
179
179
|
const responseName = ((0, messages_1.isAIMessage)(prevMessage) && !!prevMessage.tool_calls?.length
|
|
180
180
|
? prevMessage.tool_calls[0].name
|
|
181
181
|
: prevMessage.name) ?? message.tool_call_id;
|
|
182
|
-
console.log(contentStr);
|
|
183
182
|
try {
|
|
184
183
|
const content = JSON.parse(contentStr);
|
|
185
184
|
return [
|
package/dist/utils/gemini.js
CHANGED
|
@@ -175,7 +175,6 @@ function toolMessageToContent(message, prevMessage) {
|
|
|
175
175
|
const responseName = (isAIMessage(prevMessage) && !!prevMessage.tool_calls?.length
|
|
176
176
|
? prevMessage.tool_calls[0].name
|
|
177
177
|
: prevMessage.name) ?? message.tool_call_id;
|
|
178
|
-
console.log(contentStr);
|
|
179
178
|
try {
|
|
180
179
|
const content = JSON.parse(contentStr);
|
|
181
180
|
return [
|