Commit bdbe84e
fix: AI system messages should always be at start of prompt (#1741)
* fix alternating system / user messages for anthropic / gemini
* also update json tool
* add USER_MESSAGE
Co-authored-by: Nick Perez <nick@blocknotejs.org>
* snapshots
---------
Co-authored-by: Nick Perez <nick@blocknotejs.org>1 parent f4b2e7a commit bdbe84e
File tree
199 files changed
+883
-466
lines changed- packages/xl-ai
- src
- api
- formats
- html-blocks
- __snapshots__/htmlBlocks.test.ts
- Add/__msw_snapshots__
- anthropic.messages/claude-3-7-sonnet-latest (non-streaming)
- groq.chat
- llama-3.3-70b-versatile (non-streaming)
- llama-3.3-70b-versatile (streaming)
- openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Combined/__msw_snapshots__
- anthropic.messages/claude-3-7-sonnet-latest (non-streaming)
- groq.chat
- llama-3.3-70b-versatile (non-streaming)
- llama-3.3-70b-versatile (streaming)
- openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Delete/__msw_snapshots__
- anthropic.messages/claude-3-7-sonnet-latest (non-streaming)
- groq.chat
- llama-3.3-70b-versatile (non-streaming)
- llama-3.3-70b-versatile (streaming)
- openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Update/__msw_snapshots__
- anthropic.messages/claude-3-7-sonnet-latest (non-streaming)
- groq.chat
- llama-3.3-70b-versatile (non-streaming)
- llama-3.3-70b-versatile (streaming)
- openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- json
- __snapshots__/json.test.ts
- Add/__msw_snapshots__/openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Combined/__msw_snapshots__/openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Delete/__msw_snapshots__/openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- Update/__msw_snapshots__/openai.chat
- gpt-4o-2024-08-06 (non-streaming)
- gpt-4o-2024-08-06 (streaming)
- testUtil
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
199 files changed
+883
-466
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| |||
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
170 | 181 | | |
171 | 182 | | |
172 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments