-
Notifications
You must be signed in to change notification settings - Fork 99
feat: describegpt add --language option
#3184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a --language option to the describegpt command, allowing users to specify the output language for LLM-generated descriptions. When set, the language instruction is prepended to the prompt and injected into tag generation prompts to influence the model's response language. The change includes documentation, argument parsing, prompt generation modifications, and cache key updates to properly invalidate cached results when language settings change.
Key Changes
- Added
--language <lang>flag to specify the output language for LLM responses - Modified prompt generation to include language instructions when the flag is provided
- Updated cache key generation to include the language parameter for proper cache invalidation
…nd configurable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
also, remove leading space from {LANGUAGE} instances as leading space is inserted back when --language is set, and blank otherwise.
This makes the prompt read normally and not have weird double-spacing when language is not set per GH Copilot review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- remove curly braces escaping as we are using to_string, not format! macro - document it - language prompt variables are processed the same way as others. - no need for mutable prompt
…Characteristics section in Description is in the requested language.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.