Debugging System Instructions and Safety Settings in Google AI Studio
Tune your parameters online before you write any code! An illustrated walkthrough of Google AI Studio's visual debugging workbench, showing you how to set the system persona, adjust the temperature value, and turn off safety filters that over-block.
1. The Big Convenience of Visual Parameter Tuning
Before you start writing Python or Node.js code, using Google AI Studio's web workbench (Get prompt) can sharply cut down the time you'd otherwise spend on blind trial and error.
2. Hands-On with the Three Core Debugging Panels
1. System Instructions: enter the model's global, top-level rules in the left-hand column — for example, requiring that all output follow a standard format;
2. Model Parameters: use the sliders to adjust Temperature (for coding, lower it to 0.2 to improve accuracy; for creative writing, raise it to 0.7);
3. Safety Settings: click to expand the safety filters and set the review threshold for controversial but non-malicious content to Block none, so that ordinary questions aren't blocked by mistake.