smoltalk 0.0.41 → 0.0.42
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/clients/google.js +4 -5
- package/package.json +1 -1
package/dist/clients/google.js
CHANGED
|
@@ -65,11 +65,10 @@ export class SmolGoogle extends BaseClient {
|
|
|
65
65
|
if (tools.length > 0) {
|
|
66
66
|
genConfig.tools = [{ functionDeclarations: tools }];
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (config.responseFormat && tools.length === 0) {
|
|
68
|
+
if (config.responseFormat && tools.length > 0) {
|
|
69
|
+
console.error("Warning: Both responseFormat and tools are specified in the prompt config. Google Gemini does not support enforcing a response format when tools are included, so the responseFormat will be ignored.");
|
|
70
|
+
}
|
|
71
|
+
else if (config.responseFormat && tools.length === 0) {
|
|
73
72
|
genConfig.responseMimeType = "application/json";
|
|
74
73
|
genConfig.responseJsonSchema = config.responseFormat.toJSONSchema();
|
|
75
74
|
}
|