Spaces:
Running
Running
Using model parameters from environment variables
Browse files
crew.py
CHANGED
@@ -8,13 +8,10 @@ from crewai.project import CrewBase, agent, crew, task
|
|
8 |
from crewai_tools import SerperDevTool, ScrapeWebsiteTool
|
9 |
#from pydantic import BaseModel, Field
|
10 |
from typing import List, Optional
|
11 |
-
import os
|
12 |
|
13 |
-
os
|
14 |
-
os.environ["OPENAI_API_BASE"] = "https://api.sambanova.ai/v1"
|
15 |
-
os.environ["OPENAI_MODEL_NAME"] = "sambanova/Meta-Llama-3.1-70B-Instruct"
|
16 |
|
17 |
-
llm = LLM(model=
|
18 |
|
19 |
"""
|
20 |
class Activity(BaseModel):
|
|
|
8 |
from crewai_tools import SerperDevTool, ScrapeWebsiteTool
|
9 |
#from pydantic import BaseModel, Field
|
10 |
from typing import List, Optional
|
|
|
11 |
|
12 |
+
import os
|
|
|
|
|
13 |
|
14 |
+
llm = LLM(model=os.environ("OPENAI_MODEL_NAME")
|
15 |
|
16 |
"""
|
17 |
class Activity(BaseModel):
|