permitech
model
Was this page helpful?
⌘I
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
# Create a model from a provider
openai_provider = Integration.create_openai(token="sk-...")
models = openai_provider.models
model = models[0]
# Use model in experiment (serializes to string)
experiment = Experiment(
name="test",
dataset_name="dataset",
prompt_name="prompt",
project_name="project",
model=model # Automatically converts to string alias
)
# Model is immutable
model.alias = "new-value" # Raises AttributeError
def alias(self) -> str
def name(self) -> str
def provider_name(self) -> str
def to_dict(self) -> dict[str, Any]
Was this page helpful?
