diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.toml index bb08ca48b..dcac96d7f 100644 --- a/packages/python-sdk/pyproject.toml +++ b/packages/python-sdk/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "simstudio-sdk" -version = "0.1.0" +version = "0.1.1" authors = [ {name = "Sim", email = "support@sim.ai"}, ] diff --git a/packages/python-sdk/setup.py b/packages/python-sdk/setup.py index 3b6457695..680f30dad 100644 --- a/packages/python-sdk/setup.py +++ b/packages/python-sdk/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setup( name="simstudio-sdk", - version="0.1.0", + version="0.1.1", author="Sim", author_email="support@sim.ai", description="Sim SDK - Execute workflows programmatically", diff --git a/packages/ts-sdk/package.json b/packages/ts-sdk/package.json index ee814211e..defc4eddd 100644 --- a/packages/ts-sdk/package.json +++ b/packages/ts-sdk/package.json @@ -1,6 +1,6 @@ { "name": "simstudio-ts-sdk", - "version": "0.1.0", + "version": "0.1.1", "description": "Sim SDK - Execute workflows programmatically", "type": "module", "main": "dist/index.js", diff --git a/packages/ts-sdk/src/index.ts b/packages/ts-sdk/src/index.ts index 2152b9917..2f4c555d8 100644 --- a/packages/ts-sdk/src/index.ts +++ b/packages/ts-sdk/src/index.ts @@ -129,7 +129,7 @@ export class SimStudioClient { value: any, visited: WeakSet = new WeakSet() ): Promise { - if (value instanceof File) { + if (typeof File !== 'undefined' && value instanceof File) { const arrayBuffer = await value.arrayBuffer() const buffer = Buffer.from(arrayBuffer) const base64 = buffer.toString('base64')