Skip to content

feat: add option to start server with --api_keys #2156

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

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

vansangpfiev
Copy link
Contributor

Describe Your Changes

This pull request includes updates to the engine/main.cc file to add support for API keys configuration. The changes introduce a new command-line argument for specifying API keys and handle the configuration update accordingly.

Key changes:

  • Added a new command-line argument --api_keys to specify API keys in the print_help function.
  • Introduced a new optional variable api_keys in the main function to store the API keys.
  • Updated the command-line argument parsing logic to handle the --api_keys argument for both wide and narrow character strings. [1] [2]
  • Added logic to update the Cortex configuration with the provided API keys if the --api_keys argument is specified.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev merged commit 8404e54 into main Mar 20, 2025
8 checks passed
@vansangpfiev vansangpfiev deleted the s/fix/pass-apikeys-server branch March 20, 2025 11:07
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.

2 participants