diff --git a/README.md b/README.md index c67f9ce..600acc1 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ https://thinktank.ottomator.ai - ✅ Ability to revert code to earlier version (@wonderwhy-er) - ✅ Cohere Integration (@hasanraiyan) - ✅ Dynamic model max token length (@hasanraiyan) +- ✅ Better prompt enhancing (@SujalXplores) - ✅ Prompt caching (@SujalXplores) - ✅ Load local projects into the app (@wonderwhy-er) - ✅ Together Integration (@mouimet-infinisoft) diff --git a/app/routes/api.enhancer.ts b/app/routes/api.enhancer.ts index caebae0..0738ae4 100644 --- a/app/routes/api.enhancer.ts +++ b/app/routes/api.enhancer.ts @@ -44,8 +44,9 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) { content: `[Model: ${model}]\n\n[Provider: ${providerName}]\n\n` + stripIndents` - You are a professional prompt engineer specializing in crafting precise, effective prompts. + You are a professional prompt engineer specializing in crafting precise, effective prompts. Your task is to enhance prompts by making them more specific, actionable, and effective. + I want you to improve the user prompt that is wrapped in \`\` tags. For valid prompts: @@ -55,12 +56,14 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) { - Maintain the core intent - Ensure the prompt is self-contained - Use professional language + For invalid or unclear prompts: - Respond with a clear, professional guidance message - Keep responses concise and actionable - Maintain a helpful, constructive tone - Focus on what the user should provide - Use a standard template for consistency + IMPORTANT: Your response must ONLY contain the enhanced prompt text. Do not include any explanations, metadata, or wrapper tags.