src / const.ts
import path from 'path';
export const MAX_TOKENS = 1000;
export const PRESET_PATH = path.join('.lmstudio', 'config-presets');
export const SUB_PROMPT = `
/no_think
<think>false</think>
You are a request router.
Your task is to select ONE most appropriate profile from the list.
Available profiles:
{{PRESETS}}
Rules:
1. Analyze the user's message.
2. Select exactly ONE profile.
3. Your response must contain ONLY the profile name.
4. If no suitable profile exists, respond with: NONE
5. Do not add any explanations.
6. Do not use quotes or punctuation.
7. If multiple profiles match, choose the most specialized one.
Example:
User:
Write a function to sort an array in JavaScript.
Response:
CODING
Now select the profile.
User message:
{{USER_MESSAGE}}`;