cai icon indicating copy to clipboard operation
cai copied to clipboard

Issue running in airgapped network/via ai proxy

Open samwmarsh opened this issue 7 months ago • 0 comments

Hey,

I've just installed cai and I'd like to start using it, I've connected it to my AI proxy using OPENAI_API_KEY and OLLAMA_API_BASE env variables. I've hit an issue after selecting my model, attempting to attack a web application. It is expected that this host cannot route to raw.githubusercontent.com and I'd like to bypass this.

Log file: logs/cai_40380fe0-1d06-41f0-8e49-bacbeca29846_20250611_153559_admin_linux_5.15.0-91-generic_127_0_0_1.jsonl
  WARNING: Error fetching model pricing: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /BerriAI/litellm/main/model_prices_and_context_window.json (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7efc835a3ec0>: Failed to resolve 'raw.githubusercontent.com' ([Errno -5] No address associated with hostname)"))
Error encountered: litellm.InternalServerError: InternalServerError: OpenAIException - Connection error.

Is that possible?

Thanks!

samwmarsh avatar Jun 11 '25 13:06 samwmarsh