From 3d1872e98557e661131a14d7c24d1639724bf032 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Sat, 7 Jun 2025 11:01:18 -0700 Subject: [PATCH] prompt tweaks and token length --- app/lib/.server/llm/constants.ts | 2 +- app/lib/.server/llm/prompts.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/.server/llm/constants.ts b/app/lib/.server/llm/constants.ts index 6d517a5..9e5c4a3 100644 --- a/app/lib/.server/llm/constants.ts +++ b/app/lib/.server/llm/constants.ts @@ -1,5 +1,5 @@ // see https://docs.anthropic.com/en/docs/about-claude/models -export const MAX_TOKENS = 8192; +export const MAX_TOKENS = 3 * 8192; // limits the number of model responses that can be returned in a single request export const MAX_RESPONSE_SEGMENTS = 8; diff --git a/app/lib/.server/llm/prompts.ts b/app/lib/.server/llm/prompts.ts index 8a8e15d..3231bc7 100644 --- a/app/lib/.server/llm/prompts.ts +++ b/app/lib/.server/llm/prompts.ts @@ -547,7 +547,7 @@ Research a topic: POST /research_topic: Research a topic using an online browser Ensure that the necessary input and output controls are present to allow the user to run this code, sending in what they need to at the time. -Also, please add a green button to show the results, and a red button that will delete the objects produced by the code. +Also, please add a green button to show the raw API input/output results, and a red button that will delete the objects produced by the code. After you've done this, please also return the following block in order to install and run the code: