agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

example.env file

Open Digiguy1 opened this issue 1 year ago • 4 comments

Hi i would like to use groq llama3 or perplexit as my defaut api key but it is still asking me for openai key

Screen Shot 2024-09-27 at 5 07 05 PM

what can i do to fix this ??

Digiguy1 avatar Sep 27 '24 21:09 Digiguy1

Hi there @Digiguy1 After pasting your API key in example.env file and having it renamed to .env (no filename, extension only), you should remove the # uncommenting the line with the model that you do want to use in initialize.py file. The Perplexity API key is going to work without editing initialize.py file. Make sure to select a proper embedding model, if you don't want to use OpenAI.

Let's say that you want to use the latest llama-3.2-11b-text-preview from Groq Console. Here's what your initialize.py should look like. As you can see I use mxbai-embed-large through Ollama as embedding model:

image

3clyp50 avatar Sep 28 '24 18:09 3clyp50

thanks that actually worked 👍

Digiguy1 avatar Sep 29 '24 18:09 Digiguy1

I'm glad it did @Digiguy1

3clyp50 avatar Sep 29 '24 20:09 3clyp50

@3clyp50 so i downloaded the new agent zero made the same changes but for some reason it doesn't work on the new version i get errors

/agent-zero/run_cli.py", line 11, in from initialize import initialize File "/Users/greytech/ai/a0-updates/agent-zero/initialize.py", line 20 utility_llm = chat_llm

Digiguy1 avatar Oct 07 '24 22:10 Digiguy1