benjamin5607 commited on
Commit
8c6d44d
ยท
verified ยท
1 Parent(s): 12a7d13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -72,7 +72,7 @@ with tab_search:
72
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create
73
  try:
74
  res = client.chat.completions.create(
75
- model="llama-3.1-70b-versatile",
76
  messages=[{"role": "user", "content": f"Risk score (0-100) for '{search_keyword}' in {name} news: {titles}. Return ONLY the integer."}],
77
  max_tokens=10
78
  )
@@ -110,7 +110,7 @@ with tab_search:
110
 
111
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create
112
  global_res = client.chat.completions.create(
113
- model="llama-3.1-70b-versatile",
114
  messages=[{"role": "system", "content": global_system_prompt}, {"role": "user", "content": combined_news}],
115
  max_tokens=3000,
116
  temperature=0.3
@@ -151,7 +151,7 @@ with tab_report:
151
 
152
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create + response_format
153
  deep_res = client.chat.completions.create(
154
- model="llama-3.1-70b-versatile",
155
  messages=[{"role": "system", "content": deep_system_prompt}, {"role": "user", "content": feed_text}],
156
  response_format={"type": "json_object"}
157
  )
 
72
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create
73
  try:
74
  res = client.chat.completions.create(
75
+ model="llama-3.3-70b-versatile",
76
  messages=[{"role": "user", "content": f"Risk score (0-100) for '{search_keyword}' in {name} news: {titles}. Return ONLY the integer."}],
77
  max_tokens=10
78
  )
 
110
 
111
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create
112
  global_res = client.chat.completions.create(
113
+ model="llama-3.3-70b-versatile",
114
  messages=[{"role": "system", "content": global_system_prompt}, {"role": "user", "content": combined_news}],
115
  max_tokens=3000,
116
  temperature=0.3
 
151
 
152
  # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: client.chat.completions.create + response_format
153
  deep_res = client.chat.completions.create(
154
+ model="llama-3.3-70b-versatile",
155
  messages=[{"role": "system", "content": deep_system_prompt}, {"role": "user", "content": feed_text}],
156
  response_format={"type": "json_object"}
157
  )