Skip to content
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

Feature/add proxy configuration #423

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
node_modules
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -179,7 +179,7 @@ By default OpenCommit uses [OpenAI](https://openai.com).
You could switch to [Azure OpenAI Service](https://learn.microsoft.com/azure/cognitive-services/openai/) or Flowise or Ollama.

```sh
oco config set OCO_AI_PROVIDER=azure OCO_API_KEY=<your_azure_api_key> OCO_API_URL=<your_azure_endpoint>
oco config set OCO_AI_PROVIDER=azure OCO_API_KEY=<your_azure_api_key> OCO_API_URL=<your_azure_endpoint> OCO_API_VERSION=<your_azure_api_version>

oco config set OCO_AI_PROVIDER=flowise OCO_API_KEY=<your_flowise_api_key> OCO_API_URL=<your_flowise_endpoint>

@@ -227,6 +227,22 @@ oco config set OCO_PROMPT_MODULE=<module>

Replace `<module>` with either `conventional-commit` or `@commitlint`.

### Configure PROXY

**Works only from openAi and azure provider**

```sh
oco config set OCO_HTTP_PROXY=http://127.0.0.1:9090
# or with user na password
oco config set OCO_HTTP_PROXY=http://user:pass@127.0.0.1:9090
```

### Configure extra CA for http agent

```sh
oco config set OCO_HTTP_CA_BUNDLE='/tmp/test.pom,/tmp/test2.pom'
```

#### Example:

To switch to using the `'@commitlint` prompt module, run:
31,323 changes: 13,676 additions & 17,647 deletions out/cli.cjs

Large diffs are not rendered by default.

Loading
Oops, something went wrong.
Loading
Oops, something went wrong.