candenizkocak commited on
Commit
a03c348
·
verified ·
1 Parent(s): 57793e6

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +4 -4
tools.py CHANGED
@@ -22,7 +22,7 @@ def analyze_financials(company: str, user_input: str):
22
  }
23
 
24
  analyst_model = genai.GenerativeModel(
25
- model_name="gemini-2.5-pro-preview-03-25",
26
  generation_config=analyst_generation_config,
27
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, calendar, sec filings, income statement, quarterly income statement, balance sheet, quarterly balance sheet, cashflow, quarterly cashflow."
28
  )
@@ -51,7 +51,7 @@ def analyze_stock(company: str, period: str, user_input: str):
51
  }
52
 
53
  stock_model = genai.GenerativeModel(
54
- model_name="gemini-1.5-flash",
55
  generation_config=stock_generation_config,
56
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, company info, historical data."
57
  )
@@ -85,7 +85,7 @@ def analyze_analysts_estimatations(company: str, user_input: str):
85
  }
86
 
87
  analysts_model = genai.GenerativeModel(
88
- model_name="gemini-1.5-flash",
89
  generation_config=analysts_generation_config,
90
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, company info, analyst price targets, earnings estimate, revenue estimate, earnings history, eps trend, eps revisions, growth estimates."
91
  )
@@ -112,7 +112,7 @@ def analyze_news(company: str, user_input: str):
112
  }
113
 
114
  news_model = genai.GenerativeModel(
115
- model_name="gemini-1.5-flash",
116
  generation_config=news_generation_config,
117
  system_instruction="You are an expert financial analyst. Given a set of financial news on company, I ask you to analyze the company. You will have access to ticker name, news on yahoo finance."
118
  )
 
22
  }
23
 
24
  analyst_model = genai.GenerativeModel(
25
+ model_name="gemini-1.5-pro",
26
  generation_config=analyst_generation_config,
27
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, calendar, sec filings, income statement, quarterly income statement, balance sheet, quarterly balance sheet, cashflow, quarterly cashflow."
28
  )
 
51
  }
52
 
53
  stock_model = genai.GenerativeModel(
54
+ model_name="gemini-1.5-pro",
55
  generation_config=stock_generation_config,
56
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, company info, historical data."
57
  )
 
85
  }
86
 
87
  analysts_model = genai.GenerativeModel(
88
+ model_name="gemini-1.5-pro",
89
  generation_config=analysts_generation_config,
90
  system_instruction="You are an expert financial analyst. Given a set of financial statements of a company, I ask you to analyze the company. You will have access to ticker name, company info, analyst price targets, earnings estimate, revenue estimate, earnings history, eps trend, eps revisions, growth estimates."
91
  )
 
112
  }
113
 
114
  news_model = genai.GenerativeModel(
115
+ model_name="gemini-1.5-pro",
116
  generation_config=news_generation_config,
117
  system_instruction="You are an expert financial analyst. Given a set of financial news on company, I ask you to analyze the company. You will have access to ticker name, news on yahoo finance."
118
  )