Skip to main content
The Version Service in the Galtea SDK allows you to manage different iterations of your products through versions. This Service is exposed by the galtea.versions object.
Remember that we will be using the galtea object. More information here.

Quick Example

from galtea import Galtea

galtea = Galtea(api_key="YOUR_API_KEY")

# Create a version
version = galtea.versions.create(
    name="v1.0",
    product_id="YOUR_PRODUCT_ID",
    description="Initial version with basic capabilities",
    model_id="gpt-4"
)

print(f"Created version: {version.name} (ID: {version.id})")

# List all versions for a product
versions = galtea.versions.list(product_id="YOUR_PRODUCT_ID")
print(f"Total versions: {len(versions)}")

for v in versions:
    print(f"- {v.name} created at {v.created_at}")

# Retrieve version by name
version = galtea.versions.get_by_name(
    product_id="YOUR_PRODUCT_ID",
    version_name="v1.0"
)
print(f"Found version: {version.name}")

Service Methods

Version

A specific iteration of a product