-
Notifications
You must be signed in to change notification settings - Fork 22
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: add OPENAI_API_KEY env var to v2app from config file #110
Conversation
@tigerinus Please take a look |
Codecov Report
@@ Coverage Diff @@
## main #110 +/- ##
==========================================
- Coverage 20.75% 20.19% -0.56%
==========================================
Files 29 30 +1
Lines 4043 4155 +112
==========================================
Hits 839 839
- Misses 3069 3181 +112
Partials 135 135
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Tiger Wang <[email protected]>
Signed-off-by: Tiger Wang <[email protected]>
Signed-off-by: Tiger Wang <[email protected]>
Signed-off-by: Tiger Wang <[email protected]>
@tigerinus Please take another look |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
set a value ```shell go run . app-management set global OPENAPI_AI_KEY sk-test-value ``` to look all global value ```shell go run . app-management show global ``` Note: The PR is wait IceWhaleTech/CasaOS-AppManagement#110 to be merged. So the Open API file may didn't update and the program can't be compiled. So the QA can use the file below.
add two magic values to the application contributor documents to help the developer to get the most from casaos. the document is waiting for these PRs to be merged - IceWhaleTech/CasaOS-AppManagement#113 - IceWhaleTech/CasaOS-AppManagement#110
What does the PR do?
It imports a new config and adds an env var(
OPENAI_API_KEY
) to every v2 app.Test Steps
change the config(
/etc/casaos/app-management.conf
)new an app
type
env
in app terminal likeuse
go run . app-management set global OPENAPI_AI_KEY sk-test-value
in feat: implement set and show global key CasaOS-CLI#34type
env
in app terminal like. to seeOPENAI_API_KEY
be changed.