Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TypeError: openai.listModels is not a function #5

@johnd0e

Description

@johnd0e
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions