Skip to content

Commit 621b12b

Browse files
feat(proxy): add universal proxy support and fix Gemini model resolution (#536)
Integrated undici ProxyAgent for native fetch and HttpsProxyAgent for axios/openai/anthropic. Upgraded @google/generative-ai to fix #536. Added OCO_PROXY config. Removed build artifacts from tracking. Co-authored-by: uni <uni@hanwei.ink>
1 parent f51393e commit 621b12b

File tree

16 files changed

+120
-158893
lines changed

16 files changed

+120
-158893
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
2+
out/
23
coverage/
34
temp/
45
build/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,16 @@ oco config set OCO_AI_PROVIDER=flowise OCO_API_KEY=<your_flowise_api_key> OCO_AP
237237
oco config set OCO_AI_PROVIDER=ollama OCO_API_KEY=<your_ollama_api_key> OCO_API_URL=<your_ollama_endpoint>
238238
```
239239

240+
### Use with Proxy
241+
242+
If you are behind a proxy, you can set it in the config:
243+
244+
```sh
245+
oco config set OCO_PROXY=http://127.0.0.1:7890
246+
```
247+
248+
Or it will automatically use `HTTPS_PROXY` or `HTTP_PROXY` environment variables.
249+
240250
### Locale configuration
241251

242252
To globally specify the language used to generate commit messages:

out/cli.cjs

Lines changed: 0 additions & 69702 deletions
This file was deleted.

0 commit comments

Comments
 (0)