#138 the system instruction inserted in the begining of user prompt #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

#138
feat: Add [merge_system_prompt] option for models that don't support system instructions (e.g., Gemma 3)
Description
Problem
When using certain AI models like Gemma 3 via Google AI API, the application fails with error:
Added a new boolean field
merge_system_promptto theOpenAIAgentmodel that allows administrators to configure how system instructions are sent to the API.Changes Made
merge_system_prompt = models.BooleanField( _("Merge System Prompt to User Message"), default=False, help_text=_("Enable for models that don't support system instructions (e.g., Gemma 3)") )How It Works
Before (Standard Behavior):
messages = [ {"role": "system", "content": "You are a translator..."}, {"role": "user", "content": "Hello, how are you?"} ]After (With merge_system_prompt=True):
messages = [ {"role": "user", "content": "You are a translator...\n\nHello, how are you?"} ]