frdel / agent-zero

Agent Zero AI framework
Other
4.86k stars 1.08k forks source link

example.env file #160

Open Digiguy1 opened 1 month ago

Digiguy1 commented 1 month ago

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 ??

3clyp50 commented 1 month ago

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

Digiguy1 commented 1 month ago

thanks that actually worked 👍

3clyp50 commented 1 month ago

I'm glad it did @Digiguy1

Digiguy1 commented 1 month ago

@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