Spaces:
Running
Running
Update feed_to_llm_v2.py
Browse files- 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 |
-
|
|
|
|
|
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
|