menikev commited on
Commit
826e2a6
·
verified ·
1 Parent(s): aada211

Update crypto_analysis_agents.py

Browse files
Files changed (1) hide show
  1. crypto_analysis_agents.py +23 -3
crypto_analysis_agents.py CHANGED
@@ -11,18 +11,38 @@ from sentiment_tools import SentimentTool
11
  load_dotenv()
12
  TOGETHER_API_KEY = os.getenv("TOGETHER_API_KEY")
13
 
 
14
  class CryptoAnalysisAgents:
15
  def __init__(self):
16
- # Use CrewAI's LLM class with proper Together AI configuration
17
  self.llm = LLM(
18
- model="together_ai/meta-llama/Llama-2-7b-chat-hf",
19
  api_key=TOGETHER_API_KEY,
20
  base_url="https://api.together.xyz/v1",
21
  temperature=0.7,
22
  max_tokens=512,
23
  top_p=0.9
24
  )
25
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  def market_analyst(self):
27
  return Agent(
28
  role='Crypto Market Analyst',
 
11
  load_dotenv()
12
  TOGETHER_API_KEY = os.getenv("TOGETHER_API_KEY")
13
 
14
+
15
  class CryptoAnalysisAgents:
16
  def __init__(self):
17
+ # OPTION 1: Llama 3.1 8B (Fast & Cost-effective)
18
  self.llm = LLM(
19
+ model="together_ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
20
  api_key=TOGETHER_API_KEY,
21
  base_url="https://api.together.xyz/v1",
22
  temperature=0.7,
23
  max_tokens=512,
24
  top_p=0.9
25
  )
26
+
27
+ # OPTION 2: Llama 3.3 70B (Better Performance) - Uncomment to use
28
+ # self.llm = LLM(
29
+ # model="together_ai/meta-llama/Llama-3.3-70B-Instruct",
30
+ # api_key=TOGETHER_API_KEY,
31
+ # base_url="https://api.together.xyz/v1",
32
+ # temperature=0.7,
33
+ # max_tokens=512,
34
+ # top_p=0.9
35
+ # )
36
+
37
+ # OPTION 3: DeepSeek R1 (Advanced Reasoning) - Uncomment to use
38
+ # self.llm = LLM(
39
+ # model="together_ai/deepseek-ai/DeepSeek-R1",
40
+ # api_key=TOGETHER_API_KEY,
41
+ # base_url="https://api.together.xyz/v1",
42
+ # temperature=0.7,
43
+ # max_tokens=512,
44
+ # top_p=0.9
45
+ # )
46
  def market_analyst(self):
47
  return Agent(
48
  role='Crypto Market Analyst',