Skip to content

Commit

Permalink
v2.5.32
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpreetbedi committed Nov 14, 2024
1 parent 51866c6 commit ef5f314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/workflows/news_article_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ def run(
and article_scraper_response.content
and isinstance(article_scraper_response.content, ScrapedArticle)
):
scraped_articles[article_scraper_response.content.url] = article_scraper_response.content.model_dump()
scraped_articles[article_scraper_response.content.url] = article_scraper_response.content
logger.info(f"Scraped article: {article_scraper_response.content.url}")

# 2.3: Save the scraped_articles in the session state
self.session_state["scraped_articles"] = {k: v for k, v in scraped_articles.items()}
self.session_state["scraped_articles"] = {k: v.model_dump() for k, v in scraped_articles.items()}

####################################################
# Step 3: Write a report
Expand Down

0 comments on commit ef5f314

Please sign in to comment.