Skip to content

Commit

Permalink
Update vizro-ai/docs/pages/user-guides/add-generated-chart-usecase.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lingyi Zhang <[email protected]>
  • Loading branch information
stichbury and lingyielia authored Nov 5, 2024
1 parent 97fc08a commit 75186e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ This object must then be passed to the `figure` argument of the Vizro [Graph](ht

We can also use Vizro-AI dynamically and assign the output of `plot()` directly to the fig variable, enabling its reuse in the `vm.Graph.figure` argument.
This method offers streamlined efficiency, eliminating the need for code copying.
Note that each dashboard run triggers an API call to OpenAI, possibly escalating costs. This can be avoided if the `fig` object is stored and retrieved as needed, instead of making repeated calls to `plot()`.
Note that each dashboard run triggers an API call to the LLM, possibly escalating costs. This can be avoided if the `fig` object is stored and retrieved as needed, instead of making repeated calls to `plot()`.

Executing the code below yields the identical dashboard as the example above.

Expand Down

0 comments on commit 75186e5

Please sign in to comment.