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

Fix: “--api-key” argument in api_server.py does not work #910

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

inovue
Copy link

@inovue inovue commented Mar 5, 2025

Is this PR adding new feature or fix a BUG?

Fix BUG.

I think the argument “--api-key” in api_server.py is currently not working.

I checked the source code,
Since the api_auth() method is not used,
I added it to the middleware.

inovue and others added 2 commits March 5, 2025 18:56
Fixed a problem in which --api_key did not work due to api_auth not being used.

- Implement API authentication middleware
- Add OpenAPI configuration
- Modify route handling to support middleware injection
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.

1 participant