Repository navigation
Asking for Help #2611
Replies: 2 comments
|
Try a small request in Visualize first: “Show a counter starting at zero and a single +1 button.” DeepTutor needs a completed If the counter works but your original program fails, raise Settings → Capabilities → Visualize → Max tokens, within your provider’s output limit. Reasoning can use part of that budget before the model finishes writing the tool arguments. A smaller program is also a useful check if you’re already at the limit. If even the counter fails and DeepTutor warns that tool calling is disabled, check Settings → Language models → Model capabilities → Tool calling. For a local backend such as Ollama or LM Studio, select Supported only if the model and server actually support native tool calls. Otherwise, try a tool-capable model. Which model and backend are you using, and does the one-button counter render? |
|
Hi @inkooslash, The error message points to the Visualize token limit. The model may be running out of output tokens before it finishes sending the visualization. I'd try increasing the Max tokens for Visualize setting under Settings → Capabilities → Visualize. After changing that, try something very small first, like a simple clickable button: <button id="test">Click me</button>
<script>
document.getElementById("test").onclick = () => {
alert("It works");
};
</script>This is just a small test to check whether Visualize can complete a basic interactive example. If that works, try your original request again. You could also split larger visualizations into smaller parts. If the same error still appears, which model are you using, and what is your current Visualize token limit? 🔍 |
Uh oh!
There was an error while loading. Please reload this page.
Whenever I switch to Visualize mode and asked to do something like an interactive program, I get this response back "The visualization agent finished without a valid canvas payload. A reasoning model can spend most of its output budget on internal thinking before the submit_visualization call is even written, which cuts the call off mid-argument. If this repeats, raise Max tokens for Visualize in Settings → Capabilities → Visualize." Any help would be appreciated.
All reactions