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

how to change api port #2320

Open
MH140000 opened this issue Oct 31, 2024 · 6 comments
Open

how to change api port #2320

MH140000 opened this issue Oct 31, 2024 · 6 comments
Assignees
Labels
bug Something isn't working stale

Comments

@MH140000
Copy link

hello How can I change the default api port that is 1337?

@MH140000 MH140000 added the bug Something isn't working label Oct 31, 2024
@MH140000
Copy link
Author

MH140000 commented Nov 1, 2024

Does that mean I can't change the port for this project? That means, for example, should I change 1337 in a file? If possible, provide an explanation in this project.

@hqnicolas
Copy link

- '1337:1337'

port: int = 1337,

api_parser.add_argument("--bind", default="0.0.0.0:1337", help="The bind string.")

EXPOSE 8080 1337

I don't understand anything about this project either, but I found some key points where you can change things

@foxfire52
Copy link
Contributor

Run api on port 2222 from python:
python3 -m g4f.cli api --bind 0.0.0.0:2222

@MH140000
Copy link
Author

MH140000 commented Nov 1, 2024

@foxfire52 thanks very much

Copy link

github-actions bot commented Nov 9, 2024

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

@github-actions github-actions bot added the stale label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

4 participants