We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What is the variable G4F_API_KEY in the Dockerfile of Hugging Face? Is it used to set the account password for access? Hugging Face G4F_API_KEY
FROM python:3.9 ARG G4F_API_KEY ARG G4F_IGNORED_PROVIDERS RUN useradd -m -u 1000 user WORKDIR /app COPY --chown=user ./requirements.txt requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt COPY --chown=user . /app USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH ENV G4F_API_KEY $G4F_API_KEY ENV G4F_IGNORED_PROVIDERS $G4F_IGNORED_PROVIDERS CMD python -m g4f --port 7860 --debug --g4f-api-key $G4F_API_KEY --ignored-providers $G4F_IGNORED_PROVIDERS
The text was updated successfully, but these errors were encountered:
Access Information To access the space, please use the following login credentials:
Username: any Password: gpt4free
如何设置?
Sorry, something went wrong.
To modify the API endpoint from "http://localhost:5002/v1/chat/completions" to "http://localhost:5002/api/v1/chat/completions", simply replace the original URL with the new one in the cURL command, as shown below:
curl http://localhost:5002/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "messages": [ {"role": "user", "content": "Hello, how are you?"} ], "max_tokens": 100 }'
xtekky
No branches or pull requests
What is the variable G4F_API_KEY in the Dockerfile of Hugging Face?
Is it used to set the account password for access? Hugging Face G4F_API_KEY
The text was updated successfully, but these errors were encountered: