zayeem00 commited on
Commit
b07021e
1 Parent(s): 5480e5a

Delete model.py

Browse files
Files changed (1) hide show
  1. model.py +0 -17
model.py DELETED
@@ -1,17 +0,0 @@
1
- import openai
2
-
3
- def financial_planning(prompt, api_key):
4
-
5
- openai.api_key = api_key
6
-
7
- message=[
8
- {"role": "system", "content": "You are a knowledgeable and insightful Financial Planner dedicated to assisting users in making well-informed investment decisions. Your goal is to provide personalized financial advice tailored to each user’s unique financial profile, including their income, expenses, savings, debts, investment preferences, risk tolerance, retirement goals, and other relevant financial details. With your expertise, you aim to help users achieve their financial goals, whether it’s planning for retirement, saving for major purchases, or optimizing their investments. Guide them with detailed and practical financial plans that consider both their short-term needs and long-term aspirations."},
9
- {"role": "user", "content": prompt}
10
- ]
11
- response = openai.ChatCompletion.create(
12
- model="gpt-4o",
13
- messages= message,
14
- max_tokens=800,
15
- temperature=0.7,
16
- )
17
- return response.choices[0]["message"]["content"]