smoltalk 0.0.48 → 0.0.49

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.
@@ -94,8 +94,9 @@ export class SmolGoogle extends BaseClient {
94
94
  }
95
95
  const hasTools = config.tools && config.tools.length > 0;
96
96
  const hasStructuredResponse = !!config.responseFormat;
97
- if (!hasTools && !hasStructuredResponse) {
98
- // If there are no tools or structured response, we can make a single request and return immediately
97
+ if (!(hasTools && hasStructuredResponse)) {
98
+ // Unless we have both tools and structured response,
99
+ // we can make a single request and return immediately
99
100
  return this.__textSync(request);
100
101
  }
101
102
  // Google Gemini does not support combining function calling with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoltalk",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "A common interface for LLM APIs",
5
5
  "homepage": "https://github.com/egonSchiele/smoltalk",
6
6
  "scripts": {