Skip to content

Add TypingMind compatibility and PHI support#11

Open
chknd1nner wants to merge 1 commit intohorselock:mainfrom
chknd1nner:feature/typingmind-phi-support
Open

Add TypingMind compatibility and PHI support#11
chknd1nner wants to merge 1 commit intohorselock:mainfrom
chknd1nner:feature/typingmind-phi-support

Conversation

@chknd1nner
Copy link
Copy Markdown
Contributor

@chknd1nner chknd1nner commented Feb 1, 2026

Summary

Adds TypingMind compatibility, web search/fetch capability, and PHI (Post History Instruction) support for clients without native PHI support.

Changes

  • TypingMind setup guide - Documents full endpoint URL requirement (/v1/messages)
  • PHI injection - Accepts phi or PHI field in request body, injects as user message after last user message, then strips before forwarding to Claude API
  • CORS headers - Added anthropic-version, anthropic-beta, x-api-key to allowed headers
  • Fixes system prompt handling when client (like TypingMind!) sends string instead of array
  • Web tools support - Added web-search-2025-03-05 and web-fetch-2025-09-10 beta headers to enable "Web Browser" toggle switch to work in TypingMind

Need for Post History Injection (PHI) support

Unlike SillyTavern, clients like TypingMind don't have native PHI support. This allows users to send ephemeral per-request instructions (reply rules, formatting preferences) that aren't stored in conversation history, as long as the client (TypingMind does!) supports custom body elements. To use this function, just have the client send a custom body element "phi" with the desired PHI.

@chknd1nner chknd1nner force-pushed the feature/typingmind-phi-support branch from 40960f7 to f93c421 Compare February 1, 2026 08:52
- Add TypingMind setup guide with full endpoint URL requirement
- Add PHI (Post History Instruction) injection for clients without native PHI
- Handle both 'phi' and 'PHI' field names (case-insensitive)
- Add anthropic-version, anthropic-beta, x-api-key to CORS allowed headers
- Add web-search-2025-03-05 and web-fetch-2025-09-10 beta headers for TypingMind web tools
- PHI is injected as user message after last user message, then stripped from request
@chknd1nner chknd1nner force-pushed the feature/typingmind-phi-support branch from f93c421 to 3f82dad Compare February 1, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant