Skip to content

Commit fa61ec8

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. Co-authored-by: uni <uni@hanwei.ink>
1 parent f51393e commit fa61ec8

File tree

14 files changed

+40251
-22259
lines changed

14 files changed

+40251
-22259
lines changed

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:

0 commit comments

Comments
 (0)