@inferencesh/sdk 0.6.2 → 0.6.3

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.
@@ -159,7 +159,7 @@ export class HttpClient {
159
159
  }
160
160
  throw new InferenceError(response.status, errorMessage, responseText);
161
161
  }
162
- return apiResponse.data;
162
+ return (apiResponse.data ?? null);
163
163
  }
164
164
  /**
165
165
  * Get URL and headers for NDJSON streaming.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",