Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: openai.listModels is not a function #5

Open
johnd0e opened this issue Jan 17, 2024 · 0 comments
Open

TypeError: openai.listModels is not a function #5

johnd0e opened this issue Jan 17, 2024 · 0 comments

Comments

@johnd0e
Copy link

johnd0e commented Jan 17, 2024

llm ls

List all models

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

TypeError: openai.listModels is not a function
    at Object.handler (file:///D:/AI/llm/main.js:100:36)
    at file:///D:/AI/llm/node_modules/yargs/build/lib/command.js:206:54
    at maybeAsyncResult (file:///D:/AI/llm/node_modules/yargs/build/lib/utils/maybe-async-result.js:9:15)
    at CommandInstance.handleValidationAndGetResult (file:///D:/AI/llm/node_modules/yargs/build/lib/command.js:205:25)
    at CommandInstance.applyMiddlewareAndGetResult (file:///D:/AI/llm/node_modules/yargs/build/lib/command.js:245:20)
    at CommandInstance.runCommand (file:///D:/AI/llm/node_modules/yargs/build/lib/command.js:128:20)
    at [runYargsParserAndExecuteCommands] (file:///D:/AI/llm/node_modules/yargs/build/lib/yargs-factory.js:1386:105)
    at YargsInstance.parse (file:///D:/AI/llm/node_modules/yargs/build/lib/yargs-factory.js:707:63)
    at file:///D:/AI/llm/main.js:123:4
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant