poemsforaphrodite commited on
Commit
d04bcf2
1 Parent(s): 69320c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -180,7 +180,7 @@ def get_serp_results(query, country_code):
180
  def extract_relevant_content(full_content, query):
181
  try:
182
  response = openai_client.chat.completions.create(
183
- model="gpt-4o-mini",
184
  messages=[
185
  {"role": "system", "content": "You are a helpful assistant that extracts the most relevant content from web pages."},
186
  {"role": "user", "content": f"Given the following web page content and search query, extract only the most relevant parts of the content that answer or relate to the query. Limit your response to about 1000 characters. If there's no relevant content, say 'No relevant content found.'\n\nQuery: {query}\n\nContent: {full_content[:4000]}"} # Limit input to 4000 characters
 
180
  def extract_relevant_content(full_content, query):
181
  try:
182
  response = openai_client.chat.completions.create(
183
+ model="gpt-3.5-turbo",
184
  messages=[
185
  {"role": "system", "content": "You are a helpful assistant that extracts the most relevant content from web pages."},
186
  {"role": "user", "content": f"Given the following web page content and search query, extract only the most relevant parts of the content that answer or relate to the query. Limit your response to about 1000 characters. If there's no relevant content, say 'No relevant content found.'\n\nQuery: {query}\n\nContent: {full_content[:4000]}"} # Limit input to 4000 characters