Skip to content

Commit

Permalink
Codegen, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
liamgriffiths committed Jul 24, 2024
1 parent acd4190 commit 9272b45
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 72 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "substrate"
version = "220240617.1.3"
version = "220240617.1.4"
description = "Substrate Python SDK"
readme = "README.md"
authors = [ "vprtwn <[email protected]>", "liamgriffiths <[email protected]>",]
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def ok(message):
print("\033[32m✓\033[0m", message)


SDK_VERSION = "2.1.3"
SDK_VERSION = "2.1.4"

# Update version
version_path = "substrate/GEN_VERSION"
Expand Down
2 changes: 1 addition & 1 deletion substrate/GEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240617.20240718
20240617.20240724
2 changes: 1 addition & 1 deletion substrate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
𐃏 Substrate Python SDK
20240617.20240718
20240617.20240724
"""

from .run_python import RunPython
Expand Down
2 changes: 1 addition & 1 deletion substrate/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "220240617.1.3"
__version__ = "220240617.1.4"
39 changes: 21 additions & 18 deletions substrate/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ class Config:
"Llama3Instruct8B",
"Llama3Instruct70B",
"Firellava13B",
"gpt-4o",
"gpt-4o-mini",
"claude-3-5-sonnet-20240620",
] = "Llama3Instruct8B"
"""
Selected model. `Firellava13B` is automatically selected when `image_uris` is provided.
Expand Down Expand Up @@ -691,7 +694,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -719,7 +722,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -755,7 +758,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""
height: Annotated[int, Field(ge=256, le=1536)] = 1024
"""
Expand Down Expand Up @@ -817,7 +820,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""
height: Annotated[int, Field(ge=256, le=1536)] = 1024
"""
Expand Down Expand Up @@ -869,7 +872,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""
width: Annotated[int, Field(ge=640, le=1536)] = 1024
"""
Expand Down Expand Up @@ -925,7 +928,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""
conditioning_scale: Annotated[float, Field(ge=0.0, le=1.0)] = 0.5
"""
Expand Down Expand Up @@ -969,7 +972,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1005,7 +1008,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1049,7 +1052,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""
strength: Annotated[float, Field(ge=0.0, le=1.0)] = 0.8
"""
Expand Down Expand Up @@ -1121,7 +1124,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1149,7 +1152,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1185,7 +1188,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand All @@ -1209,7 +1212,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1241,7 +1244,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1269,7 +1272,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1301,7 +1304,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1439,7 +1442,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down Expand Up @@ -1471,7 +1474,7 @@ class Config:
"""
store: Optional[str] = None
"""
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.
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.
"""


Expand Down
Loading

0 comments on commit 9272b45

Please sign in to comment.