Skip to content

Commit

Permalink
[ez] Rename setupEnvironmentVariables to setApiKeys (#1323)
Browse files Browse the repository at this point in the history
[ez] Rename setupEnvironmentVariables to setApiKeys

TSIA

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1323).
* __->__ #1323
* #1316
  • Loading branch information
saqadri authored Feb 23, 2024
2 parents fe7f06d + d3ac615 commit 3c905e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"category": "AIConfig"
},
{
"command": "vscode-aiconfig.setupEnvironmentVariables",
"command": "vscode-aiconfig.setApiKeys",
"title": "Set API Keys",
"category": "AIConfig"
}
Expand Down Expand Up @@ -119,7 +119,7 @@
{
"id": "setEnvironment",
"title": "Set API Keys",
"description": "Set up a .env file with the API keys needed to access the models you want to use.\n[Set API Keys](command:vscode-aiconfig.setupEnvironmentVariables)",
"description": "Set up a .env file with the API keys needed to access the models you want to use.\n[Set API Keys](command:vscode-aiconfig.setApiKeys)",
"media": {
"markdown": "media/apiKeys.md"
}
Expand Down
9 changes: 3 additions & 6 deletions vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,9 @@ export async function activate(context: vscode.ExtensionContext) {
);

context.subscriptions.push(
vscode.commands.registerCommand(
COMMANDS.SETUP_ENVIRONMENT_VARIABLES,
async () => {
await setupEnvironmentVariables(context);
}
)
vscode.commands.registerCommand(COMMANDS.SET_API_KEYS, async () => {
await setupEnvironmentVariables(context);
})
);

const createAIConfigJSONCommand = vscode.commands.registerCommand(
Expand Down
2 changes: 1 addition & 1 deletion vscode-extension/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const COMMANDS = {
CREATE_CUSTOM_MODEL_REGISTRY: `${EXTENSION_NAME}.createCustomModelRegistry`,
OPEN_CONFIG_FILE: `${EXTENSION_NAME}.openConfigFile`,
OPEN_MODEL_REGISTRY: `${EXTENSION_NAME}.openModelRegistry`,
SETUP_ENVIRONMENT_VARIABLES: `${EXTENSION_NAME}.setupEnvironmentVariables`,
SET_API_KEYS: `${EXTENSION_NAME}.setApiKeys`,
SHARE: `${EXTENSION_NAME}.share`,
SHOW_WELCOME: `${EXTENSION_NAME}.showWelcome`,
};
Expand Down

0 comments on commit 3c905e1

Please sign in to comment.