Returns

Returns a Version object for the given parameters, or None if an error occurs.

Example

version = galtea.versions.create(
    name="v1.0",
    product_id="YOUR_PRODUCT_ID",
    description="Initial version with basic summarization capabilities",
    model_id="your-model-id"
)

Parameters

name
string
required
The name of the version.
product_id
string
required
The ID of the product you want to create a version for.
description
string
A textual description of the version.
system_prompt
string
The system prompt used with the model for this version.
model_id
string
Reference to a model configured in the Galtea Platform.
dataset_description
string
Description of the dataset used for training or fine-tuning.
dataset_uri
string
A URI pointing to the dataset.
endpoint
string
The API endpoint where this version of the model is accessible.
guardrails
string
Configuration or description of safety guardrails applied.