Skip to content

Commit

Permalink
Update ballerina/tests/test.bal
Browse files Browse the repository at this point in the history
Co-authored-by: Nipuna Ransinghe  <[email protected]>
  • Loading branch information
KATTA-00 and NipunaRanasinghe authored Aug 13, 2024
1 parent d950f70 commit 50f3c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballerina/tests/test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import ballerina/os;

// Configurable variables for environment setup.
configurable boolean isLiveServer = os:getEnv("isLiveServer") == "true";
configurable string token = ?;
configurable string token = isLiveServer ? os:getEnv("OPENAI_API_KEY") : "test";
configurable string serviceUrl = isLiveServer ? "https://api.openai.com/v1" : "http://localhost:9090";
configurable string apiKey = isLiveServer ? token : "";

Expand Down

0 comments on commit 50f3c82

Please sign in to comment.