Skip to content

Commit

Permalink
docs(playground): update comment on variable cache mechanics
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization committed Oct 15, 2024
1 parent e30cbd7 commit 00371ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/store/playground/playgroundStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ export const createPlaygroundStore = (
operationType: "chat",
inputMode: "manual",
input: {
// select variablesValueCache and variableKeys from the input in order
// to capture the current value of all valid variables across all instances' prompts
// if you just select variablesValueCache, then you may display stale values
// to get a record of visible variables and their values,
// use usePlaygroundContext(selectDerivedInputVariables). do not render variablesValueCache
// directly or users will see stale values.
variablesValueCache: {
question: "",
},
Expand Down

0 comments on commit 00371ee

Please sign in to comment.