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

Add proxy option to gui cli agruments #1418

Closed
l4v3nx opened this issue Jan 1, 2024 · 2 comments
Closed

Add proxy option to gui cli agruments #1418

l4v3nx opened this issue Jan 1, 2024 · 2 comments

Comments

@l4v3nx
Copy link

l4v3nx commented Jan 1, 2024

Is your feature request related to a problem? Please describe.
We already have proxy option when using g4f package in python file. It's a good idea to add this option for deploying gui server

Describe the solution you'd like
I'm not a programmer, but you can somehow link proxy method of ChatCompletion class to gui server sources

@hlohaus
Copy link
Collaborator

hlohaus commented Jan 2, 2024

You can set a proxy via a environment variable in gui and api:

export G4F_PROXY=http:/proxy:ip

@l4v3nx
Copy link
Author

l4v3nx commented Jan 2, 2024

You can set a proxy via a environment variable in gui and api:

export G4F_PROXY=http:/proxy:ip

oh, didn't know that, thanks

@l4v3nx l4v3nx closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants