BuilderIO / BuilderIO/micro-agent

When I enter with out adding an api key.

Open
#78 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.3k
Forks
380
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.