Skip to content

Commit

Permalink
add fetching models from server
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj committed Mar 15, 2024
1 parent 7661baf commit 964c92a
Show file tree
Hide file tree
Showing 4 changed files with 1,088 additions and 2,294 deletions.
4 changes: 4 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ const program = new Commander.Command(packageJson.name)
Provide a LlamaCloud API key.
`,
)
.option(
"--list-server-models",
"Fetch available LLM and embedding models from OpenAI API.",
)
.allowUnknownOption()
.parse(process.argv);
if (process.argv.includes("--no-frontend")) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"typescript": "^5.3.3",
"eslint-config-prettier": "^8.10.0"
"eslint-config-prettier": "^8.10.0",
"ora": "^8.0.1"
},
"engines": {
"node": ">=16.14.0"
Expand Down
Loading

0 comments on commit 964c92a

Please sign in to comment.