Skip to content

Commit b4380ef

Browse files
Codegen, update version (#43)
1 parent acd4190 commit b4380ef

9 files changed

+84
-72
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "substrate"
7-
version = "220240617.1.3"
7+
version = "220240617.1.4"
88
description = "Substrate Python SDK"
99
readme = "README.md"
1010
authors = [ "vprtwn <[email protected]>", "liamgriffiths <[email protected]>",]

scripts/sync_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def ok(message):
1010
print("\033[32m✓\033[0m", message)
1111

1212

13-
SDK_VERSION = "2.1.3"
13+
SDK_VERSION = "2.1.4"
1414

1515
# Update version
1616
version_path = "substrate/GEN_VERSION"

substrate/GEN_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20240617.20240718
1+
20240617.20240724

substrate/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
𐃏 Substrate Python SDK
33
4-
20240617.20240718
4+
20240617.20240724
55
"""
66

77
from .run_python import RunPython

substrate/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "220240617.1.3"
1+
__version__ = "220240617.1.4"

substrate/core/models.py

+21-18
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ class Config:
176176
"Llama3Instruct8B",
177177
"Llama3Instruct70B",
178178
"Firellava13B",
179+
"gpt-4o",
180+
"gpt-4o-mini",
181+
"claude-3-5-sonnet-20240620",
179182
] = "Llama3Instruct8B"
180183
"""
181184
Selected model. `Firellava13B` is automatically selected when `image_uris` is provided.
@@ -691,7 +694,7 @@ class Config:
691694
"""
692695
store: Optional[str] = None
693696
"""
694-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
697+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
695698
"""
696699

697700

@@ -719,7 +722,7 @@ class Config:
719722
"""
720723
store: Optional[str] = None
721724
"""
722-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
725+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
723726
"""
724727

725728

@@ -755,7 +758,7 @@ class Config:
755758
"""
756759
store: Optional[str] = None
757760
"""
758-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
761+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
759762
"""
760763
height: Annotated[int, Field(ge=256, le=1536)] = 1024
761764
"""
@@ -817,7 +820,7 @@ class Config:
817820
"""
818821
store: Optional[str] = None
819822
"""
820-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
823+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
821824
"""
822825
height: Annotated[int, Field(ge=256, le=1536)] = 1024
823826
"""
@@ -869,7 +872,7 @@ class Config:
869872
"""
870873
store: Optional[str] = None
871874
"""
872-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
875+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
873876
"""
874877
width: Annotated[int, Field(ge=640, le=1536)] = 1024
875878
"""
@@ -925,7 +928,7 @@ class Config:
925928
"""
926929
store: Optional[str] = None
927930
"""
928-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
931+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
929932
"""
930933
conditioning_scale: Annotated[float, Field(ge=0.0, le=1.0)] = 0.5
931934
"""
@@ -969,7 +972,7 @@ class Config:
969972
"""
970973
store: Optional[str] = None
971974
"""
972-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
975+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
973976
"""
974977

975978

@@ -1005,7 +1008,7 @@ class Config:
10051008
"""
10061009
store: Optional[str] = None
10071010
"""
1008-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1011+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
10091012
"""
10101013

10111014

@@ -1049,7 +1052,7 @@ class Config:
10491052
"""
10501053
store: Optional[str] = None
10511054
"""
1052-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1055+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
10531056
"""
10541057
strength: Annotated[float, Field(ge=0.0, le=1.0)] = 0.8
10551058
"""
@@ -1121,7 +1124,7 @@ class Config:
11211124
"""
11221125
store: Optional[str] = None
11231126
"""
1124-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1127+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
11251128
"""
11261129

11271130

@@ -1149,7 +1152,7 @@ class Config:
11491152
"""
11501153
store: Optional[str] = None
11511154
"""
1152-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1155+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
11531156
"""
11541157

11551158

@@ -1185,7 +1188,7 @@ class Config:
11851188
"""
11861189
store: Optional[str] = None
11871190
"""
1188-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1191+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
11891192
"""
11901193

11911194

@@ -1209,7 +1212,7 @@ class Config:
12091212
"""
12101213
store: Optional[str] = None
12111214
"""
1212-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1215+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
12131216
"""
12141217

12151218

@@ -1241,7 +1244,7 @@ class Config:
12411244
"""
12421245
store: Optional[str] = None
12431246
"""
1244-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1247+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
12451248
"""
12461249

12471250

@@ -1269,7 +1272,7 @@ class Config:
12691272
"""
12701273
store: Optional[str] = None
12711274
"""
1272-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1275+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
12731276
"""
12741277

12751278

@@ -1301,7 +1304,7 @@ class Config:
13011304
"""
13021305
store: Optional[str] = None
13031306
"""
1304-
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the image data will be returned as a base64-encoded string.
1307+
Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string.
13051308
"""
13061309

13071310

@@ -1439,7 +1442,7 @@ class Config:
14391442
"""
14401443
store: Optional[str] = None
14411444
"""
1442-
Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string.
1445+
Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string.
14431446
"""
14441447

14451448

@@ -1471,7 +1474,7 @@ class Config:
14711474
"""
14721475
store: Optional[str] = None
14731476
"""
1474-
Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://guides.substrate.run/guides/external-file-storage). If unset, the audio data will be returned as a base64-encoded string.
1477+
Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string.
14751478
"""
14761479

14771480

0 commit comments

Comments
 (0)