-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add configuration file support for API key management #1
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
base: main
Are you sure you want to change the base?
Conversation
- Introduced `config.json` for API key storage, with a template file `config.template.json`. - Updated `DefaultEnvInitializer.swift` to load API keys from the configuration file. - Enhanced README with instructions for using the configuration file and emphasized the importance of not committing sensitive information. - Added background mode support in `Info.plist` for audio processing. - Updated `.gitignore` to include `config.json` to prevent accidental commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the change! lgtm just a couple of fields remove
Playground.xcodeproj/project.pbxproj
Outdated
@@ -465,6 +469,7 @@ | |||
MACOSX_DEPLOYMENT_TARGET = 14.2; | |||
MARKETING_VERSION = 0.0.1; | |||
PRODUCT_BUNDLE_IDENTIFIER = "com.argmaxinc.example.Playground${DEVELOPMENT_TEAM}"; | |||
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.argmaxinc.example.Playground; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Xcode generated this part
Playground.xcodeproj/project.pbxproj
Outdated
@@ -490,7 +495,7 @@ | |||
DEAD_CODE_STRIPPING = YES; | |||
DEPLOYMENT_POSTPROCESSING = NO; | |||
DEVELOPMENT_ASSET_PATHS = "\"Playground/Preview Content\""; | |||
DEVELOPMENT_TEAM = ""; | |||
DEVELOPMENT_TEAM = 2A7SXV3WJH; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove your development team :)
Playground.xcodeproj/project.pbxproj
Outdated
@@ -517,6 +522,7 @@ | |||
MACOSX_DEPLOYMENT_TARGET = 14.2; | |||
MARKETING_VERSION = 0.0.1; | |||
PRODUCT_BUNDLE_IDENTIFIER = "com.argmaxinc.example.Playground${DEVELOPMENT_TEAM}"; | |||
"PRODUCT_BUNDLE_IDENTIFIER[sdk=iphoneos*]" = com.argmaxinc.example.Playground; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
README.md
Outdated
```json | ||
{ | ||
"apiKey": "your_actual_api_key_here", | ||
"huggingFaceToken": null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just open sourced our huggingface repo, so huggingfacetoken is no longer needded, we can remove this field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea I also removed huggingFaceToken form the PlainTextAPIKeyProvider now
…ration - Updated `README.md` to reflect the removal of `huggingFaceToken` from the API key configuration. - Modified `DefaultEnvInitializer.swift` to eliminate references to `huggingFaceToken` when initializing the API key provider. - Adjusted `config.template.json` to remove `huggingFaceToken` from the template structure. - Cleared `DEVELOPMENT_TEAM` entries in `project.pbxproj` for better configuration management.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution!
BREAKING CHANGE: API key is now loaded from config.json instead of hardcoded value