Skip to content

Commit

Permalink
[ez] Rename setupEnvironmentVariables to setApiKeys
Browse files Browse the repository at this point in the history
TSIA
  • Loading branch information
saqadri committed Feb 23, 2024
1 parent 5617030 commit d3ac615
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 @@ -124,7 +124,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 @@ -57,12 +57,9 @@ export 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 d3ac615

Please sign in to comment.