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

feat: protect api with AUTHORIZATION #5

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

xsigoking
Copy link
Owner

@xsigoking xsigoking commented Apr 11, 2024

AUTHORIZATION: only for internal use to protect the API and will not be sent to OpenAI

AUTHORIZATION="Bearer abc" chatgpt-free-api

# If api server have been runned  with `AUTHORIZATION` environment variable,
# then the request must also have `Authorization` header. 
curl -H 'Authorization: Bearer abc' localhost:3040/v1/models

@xsigoking xsigoking merged commit f1ae2b7 into main Apr 11, 2024
3 checks passed
@xsigoking xsigoking deleted the feat-authorization branch April 11, 2024 03:50
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

Successfully merging this pull request may close these issues.

None yet

1 participant