Skip to content

Fix blks2cited_txt crash for document-based citations#101

Merged
jph00 merged 2 commits intomainfrom
erikgaas/docs_cite
Dec 22, 2025
Merged

Fix blks2cited_txt crash for document-based citations#101
jph00 merged 2 commits intomainfrom
erikgaas/docs_cite

Conversation

@erikgaas
Copy link
Contributor

@erikgaas erikgaas commented Dec 4, 2025

Fixes #100

_cite() assumed web search citations (which have .url), but document citations have .document_title instead.

This change uses getattr(cit, 'url', None) or cit.document_title to handle both cases.

@gitnotebooks
Copy link

gitnotebooks bot commented Dec 4, 2025

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/AnswerDotAI/claudette/pull/101

@erikgaas erikgaas added the bug Something isn't working label Dec 5, 2025
@jph00 jph00 merged commit f052a1d into main Dec 22, 2025
@jph00
Copy link
Contributor

jph00 commented Dec 22, 2025

Thanks!

@jph00
Copy link
Contributor

jph00 commented Dec 22, 2025

Ah FYI @erikgaas this caused docs deployment to break because you have a mixed cell with both an import, and other code. This doesn't work in nbdev. I'll fix it now.

@erikgaas
Copy link
Contributor Author

Ah FYI @erikgaas this caused docs deployment to break because you have a mixed cell with both an import, and other code. This doesn't work in nbdev. I'll fix it now.

Ah darn sorry about that. Thanks for fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

blks2cited_txt crashes when displaying document-based citations

2 participants