Fix broken images in finance-chart-sandbox README#73
Merged
Conversation
The relative ../../static/img/ paths don't resolve on the deployed Mintlify cookbook (docs.perplexity.ai). Use absolute raw.githubusercontent URLs instead, matching the convention used by the showcase pages.
The sandbox tool now returns files written to its workspace as downloadable `share_file` artifacts. Use that instead of scraping a fenced CSV out of stdout: the sandbox fetches the daily closes and renders the chart itself, returning prices.csv and chart.png, which the client downloads. - Pin the data source to Yahoo's v8 chart JSON (Stooq fallback): collapses the old multi-call source hunt to ~1 sandbox invocation, cutting latency/cost. - Raise max_output_tokens to 8192 — the sandbox spends output tokens writing its own code; a tight cap starved the file-write step (data fetched, no files). - CLI: download both files, no local matplotlib (no third-party deps). - Web UI: display the sandbox-rendered PNG via a new /chart.png endpoint and drop Chart.js; keep the CSV download and streamed analysis. - README updated; finance_search re-confirmed history-less (latest quote only).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The images in the Finance Chart (Sandbox) example don't render on the live cookbook (docs.perplexity.ai). The references used relative paths:
These don't resolve on the deployed Mintlify site — the repo-root
static/folder isn't served there. (The same broken pattern affects other examples likediscord-py-bot; verified all candidate deployed paths return 404.)Fix
Point both images at their committed location via
raw.githubusercontent.com, which returns200 image/pngand matches the convention already used by the showcase pages:Affects only
docs/examples/finance-chart-sandbox/README.mdx(2 image references).🤖 Generated with Claude Code