Skip to content

Fix f-string formatting error in disease Q&A API example #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Fix f-string formatting error in disease Q&A API example #1

merged 1 commit into from
Apr 1, 2025

Conversation

Kaushalsurana
Copy link
Contributor

This PR fixes a ValueError that occurs due to improper f-string formatting in the disease Q&A API example.

The error occurs because curly braces in the JSON example are interpreted as format specifiers.
Fixed by escaping curly braces in the f-string (doubling them) to display literal curly braces.

@james-pplx james-pplx merged commit 9ad6351 into perplexityai:main Apr 1, 2025
3 checks passed
james-pplx pushed a commit that referenced this pull request Apr 7, 2025
kesku pushed a commit that referenced this pull request Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants