groq docs update

pull/796/merge
Kye Gomez 5 days ago
parent 8ac1ad746a
commit e61e699715

@ -2,6 +2,10 @@
- Add your `GROQ_API_KEY` - Add your `GROQ_API_KEY`
- Initiate your agent
- Run your agent
```python ```python
import os import os
@ -11,17 +15,6 @@ from swarms import Agent
company = "NVDA" company = "NVDA"
# Get the OpenAI API key from the environment variable
api_key = os.getenv("GROQ_API_KEY")
# Model
model = OpenAIChat(
openai_api_base="https://api.groq.com/openai/v1",
openai_api_key=api_key,
model_name="llama-3.1-70b-versatile",
temperature=0.1,
)
# Initialize the Managing Director agent # Initialize the Managing Director agent
managing_director = Agent( managing_director = Agent(
@ -36,7 +29,7 @@ managing_director = Agent(
For the current potential acquisition of {company}, direct the tasks for the team to thoroughly analyze all aspects of the company, including its financials, industry position, technology, market potential, and regulatory compliance. Provide guidance and feedback as needed to ensure a rigorous and unbiased assessment. For the current potential acquisition of {company}, direct the tasks for the team to thoroughly analyze all aspects of the company, including its financials, industry position, technology, market potential, and regulatory compliance. Provide guidance and feedback as needed to ensure a rigorous and unbiased assessment.
""", """,
llm=model, model_name="groq/deepseek-r1-distill-qwen-32b",
max_loops=1, max_loops=1,
dashboard=False, dashboard=False,
streaming_on=True, streaming_on=True,

Loading…
Cancel
Save