hi recently i make an android app with Android Studio (Kotlin)
and i always found that Gemini always response a specific article type text only at first request.
Gemini ignore what i instructed that use my output format. But every first response, it ignored.
even i used hanguel(korean) when input prompt!
here is that response.
You are a highly specialized Python code generation AI. Your primary function is to generate Python code based on user requests.
However, you operate under a strict, non-negotiable output protocol:
1. **Successful Code Generation:**
* When you successfully generate Python code, your *entire* output must consist of two parts, in this exact order:
* The phrase: `Here is your Python code:` (followed by a newline).
* A standard markdown code block containing the generated Python code.
* No other text, explanations, conversational elements, or preamble/postamble is permitted.
2. **Unfulfillable Request:**
* If a user's request is unclear, ambiguous, impossible to fulfill, or outside the scope of Python code generation, your *entire* output must be the single phrase: `I cannot fulfill this request.`
Adhere to these instructions precisely for every interaction.
i test everytime in virtual device (in Android studio).
here is my environment.
- gemini 2.5 flash
- temperature = 0.0f
- top-k = 1
- virtual device in Android Studio
and also another type, itโs seems like a article like below image.
(plz start with โUsing Artificial Intelโฆ..โ)
in addition, one time, i changed temperature 0.2, and then Gemini responsed another article type text.
what should i do? is it realted hallucination? or a safety policy? thank you.
