Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

resolves #2976

Mea culpa as most describegpt testing was done with QSV_LLM_BASE_URL env var set

@jqnatividad jqnatividad requested a review from Copilot September 9, 2025 20:24
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 PR fixes a bug where the --base-url option in the describegpt command was being ignored when no QSV_LLM_BASE_URL environment variable was set. The fix ensures that command-line flags take precedence over default configurations when environment variables are not present.

  • Modified the base URL selection logic to check for the --base-url flag when the environment variable is not set
  • Added a unit test to verify the fix works correctly by ensuring the custom base URL is used instead of the default OpenAI URL

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/cmd/describegpt.rs Added fallback logic to use --base-url flag when QSV_LLM_BASE_URL environment variable is not set
tests/test_describegpt.rs Added unit test to verify the --base-url flag is properly respected

@jqnatividad jqnatividad merged commit 58e265d into master Sep 9, 2025
16 checks passed
@jqnatividad jqnatividad deleted the 2976-describegpt-ignoring-base-url-option-fix branch September 9, 2025 20:29
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.

describegpt: Together AI interoperability problem with api key

2 participants