Skip to content

Commit 4afc1f2

Browse files
fix: Corrected vertex AI's JSON schema (#197)
* Corrected vertex AI's JSON schema, minor change to file_storage.exists() error handling * Bumped version to 0.77.1
1 parent e298a41 commit 4afc1f2

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/unstract/sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "v0.77.0"
1+
__version__ = "v0.77.1"
22

33

44
def get_sdk_version() -> str:

src/unstract/sdk/adapters/llm/vertex_ai/src/static/json_schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"title": "Safety Settings",
5454
"description": "Vertex AI's configurable safety filters",
5555
"properties": {
56-
"type": "string",
5756
"dangerous_content": {
5857
"type": "string",
5958
"title": "Dangerous Content",

src/unstract/sdk/file_storage/helper.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def file_storage_init(
4545
)
4646
raise FileStorageError(str(e)) from e
4747
except Exception as e:
48-
logger.error(f"Error in initialising {provider.value} " f"file system {e}")
48+
logger.error(f"Error in initialising {provider.value} file system {e}")
4949
raise FileStorageError(str(e)) from e
5050
return fs
5151

@@ -62,8 +62,7 @@ def local_file_system_init() -> AbstractFileSystem:
6262
return fs
6363
except Exception as e:
6464
logger.error(
65-
f"Error in initialising {FileStorageProvider.GCS.value}"
66-
f" file system {e}"
65+
f"Error in initialising {FileStorageProvider.GCS.value} file system {e}"
6766
)
6867
raise FileStorageError(str(e)) from e
6968

src/unstract/sdk/file_storage/impl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ def mkdir(self, path: str, create_parents: bool = True):
120120
except Exception as e:
121121
raise FileOperationError(str(e)) from e
122122

123-
@skip_local_cache
124123
def exists(self, path: str) -> bool:
125124
"""Checks if a file/directory path exists.
126125

0 commit comments

Comments
 (0)