diff --git a/core/config/yaml/models.ts b/core/config/yaml/models.ts index fd1a0beff..6eabfd040 100644 --- a/core/config/yaml/models.ts +++ b/core/config/yaml/models.ts @@ -36,7 +36,6 @@ async function modelConfigToBaseLLM({ platformConfigMetadata: PlatformConfigMetadata | undefined; config: ContinueConfig; }): Promise { - debugger; const cls = getModelClass(model); if (!cls) { diff --git a/core/llm/countTokens.ts b/core/llm/countTokens.ts index 241c0f29d..4f04a3925 100644 --- a/core/llm/countTokens.ts +++ b/core/llm/countTokens.ts @@ -530,7 +530,6 @@ function compileChatMessages({ } const lastUserMessage = getLastUserMessage(msgsCopy); - debugger; msgsCopy = addSystemMessage({ messages: msgsCopy, diff --git a/core/llm/index.ts b/core/llm/index.ts index 42b63cafd..cc7d7123c 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -302,7 +302,6 @@ export abstract class BaseLLM implements ILLM { } private _templatePromptLikeMessages(prompt: string): string { - debugger; if (!this.templateMessages) { return prompt; } diff --git a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx index 3b25e2efa..6bb3d1637 100644 --- a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx @@ -40,6 +40,23 @@ const RuleCard: React.FC = ({ index, rule, onClick, title }) => { ); } + const renderRuleContent = () => { + if (typeof rule === "string") { + return
{rule}
; + } + + if (rule.rule) { + return ( +
+
{rule.rule}
+ {rule.if &&
if: {rule.if}
} +
+ ); + } + + return
{JSON.stringify(rule)}
; + }; + return (
= ({ index, rule, onClick, title }) => { }} className="line-clamp-3 text-gray-400" > - {/** TODO: Render the rule in a more readable way */} - {JSON.stringify(rule)} + {renderRuleContent()}
@@ -163,6 +179,3 @@ export function RulesSection() {
); } -function useTypedDispatch() { - throw new Error("Function not implemented."); -}