pvanand commited on
Commit
4e129bc
·
verified ·
1 Parent(s): b7b3667

Update routers/scraping_router.py

Browse files
Files changed (1) hide show
  1. routers/scraping_router.py +1 -1
routers/scraping_router.py CHANGED
@@ -33,7 +33,7 @@ async def generate_cheerio_script(
33
  system_prompt = f"""return cheerio script to extract {request.user_input} from the following html,
34
  enclose the cheerio script in <cheerio_script> .. </cheerio_script> format, {request.html}"""
35
 
36
- response = ai_client.send_prompt(
37
  prompt=request.user_input,
38
  system_message=system_prompt,
39
  model_id="openai/gpt-4-mini",
 
33
  system_prompt = f"""return cheerio script to extract {request.user_input} from the following html,
34
  enclose the cheerio script in <cheerio_script> .. </cheerio_script> format, {request.html}"""
35
 
36
+ response = ai_client.chat(
37
  prompt=request.user_input,
38
  system_message=system_prompt,
39
  model_id="openai/gpt-4-mini",