Compare commits
1 commit
main
...
renovate/c
Author | SHA1 | Date | |
---|---|---|---|
ad2e1c1945 |
2 changed files with 6 additions and 4 deletions
3
.github/renovate.json5
vendored
Normal file
3
.github/renovate.json5
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
|
@ -25,7 +25,7 @@ logging.basicConfig(
|
|||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Initialize FastMCP server
|
||||
mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000)
|
||||
mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000, timeout_keep_alive=720)
|
||||
|
||||
async def summarize_to_words(text: str, title: str, target_word_count: int = 1000) -> str:
|
||||
url = f"https://maas.ai-2.kvant.cloud/engines/{os.getenv('SWISSDOX_SUMMARIZING_MODEL', '')}/chat/completions"
|
||||
|
@ -75,8 +75,7 @@ async def smd_detail_article(article_id):
|
|||
logger.info(f"smd_article_summarization {summarized_content}")
|
||||
return {
|
||||
"message": summarized_content,
|
||||
"article_id": article_id,
|
||||
"article_url": data.get("online"),
|
||||
"article_id": article_id
|
||||
}
|
||||
else:
|
||||
return {
|
||||
|
@ -153,7 +152,7 @@ async def smd_research(search_query: str = "Bundesrat", date_from: str = "2024-0
|
|||
logger.info(f"detailed_articles {detailed_articles}")
|
||||
return {
|
||||
"related_persons": facets.get("persons", []),
|
||||
"related_organizations": facets.get("organization", []),
|
||||
"related_organizations": facets.get("persons", []),
|
||||
"detailed_articles": detailed_articles
|
||||
}
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue