Skip to content

Update the gemini review toml to send correct response with no tags#405

Closed
megha1188 wants to merge 0 commit intogoogle-github-actions:mainfrom
megha1188:issue393
Closed

Update the gemini review toml to send correct response with no tags#405
megha1188 wants to merge 0 commit intogoogle-github-actions:mainfrom
megha1188:issue393

Conversation

@megha1188
Copy link
Copy Markdown
Contributor

This PR updates the gemini-review.toml prompt template to remove several extra newline characters.

These newlines were causing the model to sometimes generate responses with incorrect formatting or unwanted tags. Removing them cleans up the prompt and ensures the model's output more reliably adheres to the desired structure.

The change is applied to both the default command prompt and the example workflow prompt.

@megha1188
Copy link
Copy Markdown
Contributor Author

@gemini-cli /review

1 similar comment
@MJjainam
Copy link
Copy Markdown
Collaborator

MJjainam commented Dec 3, 2025

@gemini-cli /review

@gemini-cli
Copy link
Copy Markdown
Contributor

gemini-cli bot commented Dec 3, 2025

🤖 Hi @MJjainam, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link
Copy Markdown
Contributor

@gemini-cli gemini-cli bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## 📋 Review Summary

This pull request proposes a targeted and effective improvement to the prompt templates used in the gemini-review.toml files. By removing the <COMMENT> and <SUMMARY> tags, the change simplifies the prompt and reduces the likelihood of the model generating improperly formatted responses.

🔍 General Feedback

  • The change is well-reasoned and directly addresses a potential source of output variability.
  • Applying the update to both the base command and the example workflow ensures consistency.
  • This is a good example of a small but impactful change to improve prompt reliability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants