Skip to content

fix(pi): avoid undefined system prompt prefix#459

Open
terminalchai wants to merge 1 commit into
DietrichGebert:mainfrom
terminalchai:fix/pi-system-prompt-fallback
Open

fix(pi): avoid undefined system prompt prefix#459
terminalchai wants to merge 1 commit into
DietrichGebert:mainfrom
terminalchai:fix/pi-system-prompt-fallback

Conversation

@terminalchai

Copy link
Copy Markdown

Treats a missing Pi event.systemPrompt as an empty base prompt before appending Ponytail instructions, so a truthy event object like {} no longer injects a literal undefined prefix into the model's system prompt.

Closes #440.

Verified with npm test --prefix pi-extension and full npm test after prepending the local Python 3.11 install to PATH so the Hermes tests can resolve python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant