Commit 70fb7fb
feat: add demo endpoints with drift processing for driftos-core
- Separated LLM routes into /llm and /demo prefixes (matching embed-enterprise)
- Created /demo/stream endpoint for simple streaming (uses server-side Groq API key)
- Created /demo/chat endpoint with full drift processing:
- Creates temporary conversation in database
- Processes messages through LLM-based drift orchestrator
- Streams response and returns final state (branches, messages, actions)
- Cleans up demo conversation after completion
- Updated auth plugin to allow /demo routes publicly (rate limited)
- Maintains same API surface as embed-enterprise for consistent testing
Note: Core uses LLM-based routing (classify-route) vs embed's semantic similarity,
but returns similar drift decisions (BRANCH/STAY/ROUTE) and state structure.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent fb0f315 commit 70fb7fb
4 files changed
Lines changed: 538 additions & 209 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments