fix: resolve deprecation warning for apiKey value

Use the explicit $COMMANDCODE_API_KEY environment variable reference expected by newer pi versions while keeping compatibility with the legacy placeholder handling.
This commit is contained in:
PlumJam
2026-06-16 14:08:11 +02:00
committed by GitHub
parent f06982fc94
commit 88d8706234
2 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export default async function (pi: ExtensionAPI) {
pi.registerProvider("commandcode", {
name: "Command Code",
baseUrl: API_BASE,
apiKey: "COMMANDCODE_API_KEY",
apiKey: "$COMMANDCODE_API_KEY",
authHeader: true,
api: "commandcode-custom",
streamSimple: streamCommandCode,