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

Groq API problems with micro agent #51

Open
mackimart1 opened this issue Jul 10, 2024 · 3 comments
Open

Groq API problems with micro agent #51

mackimart1 opened this issue Jul 10, 2024 · 3 comments

Comments

@mackimart1
Copy link

I've been trying to solve this issue to be able to use Groq API with micro-agent, I've made .bat and even .py scripts to try to run the API/ LLM model correctly but no avail, I'm very interested in this project and would love to see how we can improve and grow, any assistance would be great thank you for your time.

C:\Users\USER>micro-agent config set OPENAI_API_ENDPOINT=*******
(node:28380) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
|
— Config updated ✅

C:\Users\user>micro-agent config set OPENAI_API_ENDPOINT=https://api.groq.com/openai/v1
(node:22840) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
|
— Config updated ✅

C:\Users\user>micro-agent config set MODEL=llama3-8b-8192
(node:31152) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
|
— Config updated ✅

C:\Users\user>micro-agent
(node:26400) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

T 🦾 Micro Agent
|
o What would you like to do?
| I want to improve my neural network
|

✖ model 'llama3-8b-8192' not found, try pulling it first
at checkOk (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/node_modules/ollama/dist/shared/ollama.d8c046e0.mjs:70:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async post (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/node_modules/ollama/dist/shared/ollama.d8c046e0.mjs:117:3)
at async Ollama.processStreamableRequest (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/node_modules/ollama/dist/shared/ollama.d8c046e0.mjs:229:25)
at async getSimpleCompletion (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/dist/cli.mjs:1034:22)
at async getFileSuggestion (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/dist/cli.mjs:949:9)
at async interactiveMode (file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/dist/cli.mjs:730:33)
at async file:///C:/Users/user/AppData/Roaming/npm/node_modules/@builder.io/micro-agent/dist/cli.mjs:1712:11

ai-shell v0.1.3

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

x Canceled
"

@steve8708
Copy link
Contributor

what is your OPENAI_API_ENDPOINT? for groq it needs to be https://api.groq.com/openai/v1

@qaribhaider
Copy link

@steve8708 I guess I can see the url in the reported bug as well, which is the same url as in the documents. But to confirm I faced the same issue, here are the steps to reproduce this:

npm install -g @builder.io/micro-agent
micro-agent config set OPENAI_KEY=************
micro-agent config set MODEL=llama3-8b-8192
micro-agent config set OPENAI_API_ENDPOINT=https://api.groq.com/openai/v1
│
└  Config updated ✅

│
└  Config updated ✅

│
└  Config updated ✅
micro-agent                                                                               

┌  🦾 Micro Agent
│
◇  What would you like to do?
│  A function that returns whether a given number is even or odd
│

✖ model "llama3-8b" not found, try pulling it first

I tried changing the model as well, but to no avail.

@karim0sec
Copy link

karim0sec commented Dec 1, 2024

I face same issue the only model that works for me in groq is mixtral:8x22b even those I have access for almost every model on groq I verify that by request all model and test them with curl working fine
Micro-agent have absolute big potential if support Every model includes Gemini and upcoming xAi
I hope pro programmers pay attention repo this will save them much effort, also it lake of documentation and no warnings of missing dependencies or packages messages and install them manually a bit annoying I'll try to help as much as I can

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

4 participants