Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/content/docs/docs/models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1282,15 +1282,14 @@ instructions as to how you want it to respond to messages from the user. You can
use the system prompt to specify characteristics such as a persona you want the
model to adopt, the tone of its responses, and the format of its responses.

If the model you're using supports system prompts, you can provide one through the model configuration:
If the model you're using supports system prompts, you can provide one with the
`system` parameter:

```dart
final response = await ai.generate(
model: googleAI.gemini('gemini-2.5-flash'),
system: 'You are a food industry marketing consultant.',
prompt: 'Invent a menu item for a pirate themed restaurant.',
config: GeminiOptions(
systemInstruction: 'You are a food industry marketing consultant.',
),
);
```

Expand Down