Skip to content

Commit 82075a6

Browse files
author
mmiscool
committed
removing command line interface.
1 parent a463c1d commit 82075a6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/llmCall.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ import ollama from 'ollama';
44
import fs from 'fs';
55
import { readFile, writeFile } from "./fileIO.js"
66
import {
7-
input,
87
clearTerminal,
98
printAndPause,
10-
119
confirmAction,
1210
} from "./terminalHelpers.js";
1311
import Anthropic from '@anthropic-ai/sdk';
@@ -176,13 +174,7 @@ export async function setupLLMapiKey(overwrite = false, service = '') {
176174
if (readFile(llmAPIkeyFileName) && !overwrite) {
177175
return readFile(llmAPIkeyFileName);
178176
} else {
179-
const apiKey = await input('Enter your LLM API key:');
180-
if (apiKey === '') {
181-
await printAndPause('No API key entered.', 1.5);
182-
return "";
183-
}
184-
await writeFile(llmAPIkeyFileName, apiKey,);
185-
return apiKey;
177+
return "";
186178
}
187179
}
188180

src/terminalHelpers.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { highlight } from 'cli-highlight';
22
import inquirer from 'inquirer';
3-
import { Separator } from '@inquirer/prompts';
43
import { exec } from "child_process";
5-
import fileSelector from 'inquirer-file-selector';
64
import { marked } from 'marked';
75
import TerminalRenderer from 'marked-terminal';
86
import path from 'path';

0 commit comments

Comments
 (0)