Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a 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

Copy link
Contributor

Copilot AI left a 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.
Copy link
Contributor

Copilot AI left a 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.

jqnatividad and others added 5 commits December 13, 2025 07:53
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.
Copy link
Contributor

Copilot AI left a 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>
@jqnatividad jqnatividad merged commit fffc33e into master Dec 13, 2025
8 of 9 checks passed
@jqnatividad jqnatividad deleted the describegpt-add-language-option branch December 13, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants