vtiyyal1 commited on
Commit
3726be0
1 Parent(s): 049643f

Update feed_to_llm_v2.py

Browse files
Files changed (1) hide show
  1. feed_to_llm_v2.py +4 -2
feed_to_llm_v2.py CHANGED
@@ -58,8 +58,10 @@ def feed_articles_to_gpt_with_links(information, question):
58
  ]
59
 
60
  response = llm.invoke(message)
61
- print(response)
62
- print("response length:", len(response))
 
 
63
  source = re.findall('\((.*?)\)', response)[-1]
64
 
65
  # get integers from source
 
58
  ]
59
 
60
  response = llm.invoke(message)
61
+ # print(response)
62
+ response_content = response.content # Access the content of the AIMessage
63
+ print(response_content)
64
+ print("response length:", len(response_content))
65
  source = re.findall('\((.*?)\)', response)[-1]
66
 
67
  # get integers from source