Tag wiki fix
This commit is contained in:
@@ -67,7 +67,7 @@ async def _fetch_wiki_info(tag_name: str) -> Optional[str]:
|
||||
|
||||
if resp.status_code == 200:
|
||||
data = resp.json()
|
||||
wiki_body = data.get("wiki_page", {}).get("body")
|
||||
wiki_body = data.get("body")
|
||||
if wiki_body:
|
||||
# Strip HTML tags for the LLM
|
||||
return re.sub(r'<[^>]*>', '', wiki_body).strip()
|
||||
|
||||
Reference in New Issue
Block a user