smartgpt icon indicating copy to clipboard operation
smartgpt copied to clipboard

add proxy configuration in yml

Open ODomWang opened this issue 1 year ago • 3 comments

I hope to add proxy configuration in yml

ODomWang avatar May 10 '23 09:05 ODomWang

Can you elaborate on what you mean by this?

Cormanz avatar May 10 '23 10:05 Cormanz

I'll try to implement this after my new config work. Proxies can allow for higher security.

@ODomWang what type of protocols would you look for? Of course HTTP Proxy and SOCKS5 will be implemented, but I'm wondering what else you'd like to see.

orvitpng avatar May 10 '23 16:05 orvitpng

That sounds good to me, ideally we should have some sort of global HTTP client settings that applies to all HTTP clients initialized in the project.

Cormanz avatar May 10 '23 17:05 Cormanz

Because my region cannot directly access OpenAI and some APIs, I need to add a proxy in the HTTP request to facilitate network communication

ODomWang avatar May 11 '23 01:05 ODomWang

Thanks for clarifying. We're planning to do a configuration overhaul soon, and we'll make sure that you can include a global proxy for requests during that update.

In the meantime, support for local LLMs is almost done and will be released shortly. Once added, if you choose to, you can try to load local models (although I can't guarantee results will be as good as GPT3.5)

Cormanz avatar May 11 '23 01:05 Cormanz

Thank you for your patient response. I am looking forward to the next version now

ODomWang avatar May 11 '23 01:05 ODomWang