|
30 | 30 | resp)) |
31 | 31 |
|
32 | 32 | (match-content chat-id "user" {:type "text" :text "Tell me a joke!\n"}) |
| 33 | + (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
33 | 34 | (match-content chat-id "system" {:type "progress" :state "running" :text "Waiting model"}) |
34 | 35 | (match-content chat-id "system" {:type "progress" :state "running" :text "Generating"}) |
35 | 36 | (match-content chat-id "assistant" {:type "text" :text "Knock"}) |
|
99 | 100 | :lastMessageCost (m/pred string?) |
100 | 101 | :sessionCost (m/pred string?)}) |
101 | 102 | (match-content chat-id "system" {:type "progress" :state "finished"}) |
102 | | - (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
103 | 103 | (is (match? |
104 | 104 | {:messages [{:role "user" :content [{:type "text" :text "Tell me a joke!"}]} |
105 | 105 | {:role "assistant" :content [{:type "text" :text "Knock knock!"}]} |
|
128 | 128 | resp)) |
129 | 129 |
|
130 | 130 | (match-content chat-id "user" {:type "text" :text "hello!\n"}) |
| 131 | + (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
131 | 132 | (match-content chat-id "system" {:type "progress" :state "running" :text "Waiting model"}) |
132 | 133 | (match-content chat-id "system" {:type "progress" :state "running" :text "Generating"}) |
133 | 134 | (match-content chat-id "assistant" {:type "reasonStarted" :id (m/pred string?)}) |
|
141 | 142 | :lastMessageCost (m/pred string?) |
142 | 143 | :sessionCost (m/pred string?)}) |
143 | 144 | (match-content chat-id "system" {:type "progress" :state "finished"}) |
144 | | - (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
145 | 145 | (is (match? |
146 | 146 | {:messages [{:role "user" :content [{:type "text" :text "hello!"}]}] |
147 | 147 | :system (m/pred vector?)} |
|
206 | 206 | resp)) |
207 | 207 |
|
208 | 208 | (match-content chat-id "user" {:type "text" :text "What files you see?\n"}) |
| 209 | + (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
209 | 210 | (match-content chat-id "system" {:type "progress" :state "running" :text "Waiting model"}) |
210 | 211 | (match-content chat-id "system" {:type "progress" :state "running" :text "Generating"}) |
211 | 212 | (match-content chat-id "assistant" {:type "reasonStarted" :id (m/pred string?)}) |
|
264 | 265 | (match-content chat-id "assistant" {:type "text" :text "The files I see:\n"}) |
265 | 266 | (match-content chat-id "assistant" {:type "text" :text "file1\nfile2\n"}) |
266 | 267 | (match-content chat-id "system" {:type "progress" :state "finished"}) |
267 | | - (match-content chat-id "system" {:type "metadata" :title "Some Cool Title"}) |
268 | 268 | (is (match? |
269 | 269 | {:messages [{:role "user" :content [{:type "text" :text "What files you see?"}]} |
270 | 270 | {:role "assistant" |
|
0 commit comments