Skip to content

[Bug]: Unable to generate commit with addition of proxy feature #551

@nth-bailey

Description

@nth-bailey

Opencommit Version

3.2.18

Node Version

v22.17.1

NPM Version

11.8.0

What OS are you seeing the problem on?

Other Linux Distro

What happened?

Unable to use behind proxy with addition of proxy setting in 3.2.18 (latest of time of writing). In order for me to hit my internal hosted models I must not use proxy settings. Because of 3.2.18 if proxy setting is not set in open commit config, it still looks at proxy environment variables. No way to make it not look at proxy unless I downgrade to 3.2.14 which is before proxy addition. I cannot unset the proxy env vars because my other applications depend on it. I confirmed open commit works again on my system after downgrading to 3.2.14.

Expected Behavior

Open commit produces commit message using internal hosted model.

Current Behavior

Says the ai service is temporarily unavailable.

Possible Solution

Add explicit option to use no proxy in open commit settings.

Steps to Reproduce

No response

Relevant log output

┌  open-commit
│
◇  No files are staged
│
◇  Do you want to stage all files and generate commit message?
│  No
│
◇  Select the files you want to add to the commit:
│  pyproject.toml
│
◇  Staged 1 files
┌  open-commit
│
◇  1 staged files:
  pyproject.toml
│
◇  ✖ Failed to generate the commit message
│
└  
✖ Service Unavailable
  The openai service is temporarily unavailable.

  Suggestion: Please try again in a few moments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions