Skip to content

When I enter with out adding an api key.Β #78

Description

@Sarthak2233

After I press enter with out giving API it prints the
β”Œ 🦾 Micro Agent
β”‚
β—† What would you like to do?
β”‚ A function that ...
This is coming after I refused to give API key and press enter
When even I start the server it directly shows the above output and When I type it produces the following error

βœ– 401 Incorrect API key provided: cancel. You can find your API key at https://platform.openai.com/account/api-keys.
at APIError.generate (E:\Codes\builderio clone\micro-agent\node_modules\openai\error.js:48:20)
at OpenAI.makeStatusError (E:\Codes\builderio clone\micro-agent\node_modules\openai\core.js:263:33)
at OpenAI.makeRequest (E:\Codes\builderio clone\micro-agent\node_modules\openai\core.js:306:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getFileSuggestion (E:\Codes\builderio clone\micro-agent\src\helpers\llm.ts:142:22)
at async interactiveMode (E:\Codes\builderio clone\micro-agent\src\helpers\interactive-mode.ts:55:33)
at async E:\Codes\builderio clone\micro-agent\src\cli.ts:132:11

micro-agent v0.1.5

Please open a Bug report with the information above:
https://github.com/BuilderIO/micro-agent/issues/new

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions