Auto Steering allows you to automatically generate feature interventions based on natural language descriptions of desired behaviors. This provides an easy way to steer model outputs without manually selecting features.
The simplest way to use Auto Steering is with the AutoSteer method:
Copy
# Create automatic feature edits for desired behavioredits = client.features.AutoSteer( specification="be funny", # Natural language description model=variant, # Model variant to use)# Apply the edits to your variantvariant.set(edits)# The model will now attempt to be funnierresponse = client.chat.completions.create( messages=[{"role": "user", "content": "Tell me a story"}], model=variant)print(response.choices[0].message["content"])