Skip to content

Commit 7b27df7

Browse files
committed
model update
1 parent 801154e commit 7b27df7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def extract_bank_statement_hybrid(text, transactions_payload=None, save_json_pat
799799

800800
try:
801801
response = client.chat.completions.create(
802-
model="gpt-4o",
802+
model="gpt-5.2",
803803
messages=[
804804
{"role": "system", "content": "You are a financial analyst expert at extracting structured data from Indian bank statements. All monetary values are in Indian Rupees (INR). Return valid JSON only."},
805805
{"role": "user", "content": llm_prompt}
@@ -968,7 +968,7 @@ def extract_itr_hybrid(text):
968968

969969
try:
970970
response = client.chat.completions.create(
971-
model="gpt-4o",
971+
model="gpt-5.2",
972972
messages=[
973973
{"role": "system", "content": "You are a tax expert analyzing Indian ITR documents. All monetary values are in Indian Rupees (INR). Extract all financial data accurately. Return valid JSON only."},
974974
{"role": "user", "content": llm_prompt}
@@ -1249,7 +1249,7 @@ def _parse_indian_amount(num_str, suffix_str=""):
12491249

12501250
try:
12511251
response = client.chat.completions.create(
1252-
model="gpt-4o",
1252+
model="gpt-5.2",
12531253
messages=[
12541254
{"role": "system", "content": "You are an insurance expert analyzing Indian insurance policies. All monetary values are in Indian Rupees (INR). Extract all details accurately based on the insurance type. Return valid JSON only."},
12551255
{"role": "user", "content": llm_prompt}
@@ -1351,7 +1351,7 @@ def extract_mutual_fund_cas_hybrid(text):
13511351

13521352
try:
13531353
response = client.chat.completions.create(
1354-
model="gpt-4o",
1354+
model="gpt-5.2",
13551355
messages=[
13561356
{"role": "system", "content": "You are a mutual fund analysis expert for Indian markets. All monetary values are in Indian Rupees (INR). Extract structured data into a valid JSON format."},
13571357
{"role": "user", "content": llm_prompt}

llm_sections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "output")
4242
SECTIONS_DIR_NAME = "sections"
43-
DEFAULT_MODEL = os.getenv("LLM_MODEL", "gpt-4o")
43+
DEFAULT_MODEL = os.getenv("LLM_MODEL", "gpt-5.2")
4444

4545
# ------------------------ Financial Assumptions (Configurable) ------------------------ #
4646
# These assumptions are used for SIP calculations and are displayed in reports

0 commit comments

Comments
 (0)