|
44 | 44 | (is (match? |
45 | 45 | {:model "qwen3" |
46 | 46 | :messages [{:role "system" :content (m/pred string?)} |
47 | | - {:role "user" :content [{:type "text" :text "Tell me a joke!"}]}]} |
| 47 | + {:role "user" :content "Tell me a joke!"}]} |
48 | 48 | llm.mocks/*last-req-body*)))) |
49 | 49 |
|
50 | 50 | (testing "We reply" |
|
96 | 96 | (is (match? |
97 | 97 | {:model "qwen3" |
98 | 98 | :messages [{:role "system" :content (m/pred string?)} |
99 | | - {:role "user" :content [{:type "text" :text "Tell me a joke!"}]} |
100 | | - {:role "assistant" :content [{:type "text" :text "Knock knock!"}]} |
101 | | - {:role "user" :content [{:type "text" :text "Who's there?"}]} |
102 | | - {:role "assistant" :content [{:type "text" :text "Foo"}]} |
103 | | - {:role "user" :content [{:type "text" :text "What foo?"}]}]} |
| 99 | + {:role "user" :content "Tell me a joke!"} |
| 100 | + {:role "assistant" :content "Knock knock!"} |
| 101 | + {:role "user" :content "Who's there?"} |
| 102 | + {:role "assistant" :content "Foo"} |
| 103 | + {:role "user" :content "What foo?"}]} |
104 | 104 | llm.mocks/*last-req-body*)))))) |
105 | 105 |
|
106 | 106 | (deftest reasoning-text |
|
141 | 141 | (is (match? |
142 | 142 | {:model "qwen3" |
143 | 143 | :messages [{:role "system" :content (m/pred string?)} |
144 | | - {:role "user" :content [{:type "text" :text "hello!"}]}]} |
| 144 | + {:role "user" :content "hello!"}]} |
145 | 145 | llm.mocks/*last-req-body*)))) |
146 | 146 |
|
147 | 147 | (testing "We reply" |
|
173 | 173 | (is (match? |
174 | 174 | {:model "qwen3" |
175 | 175 | :messages [{:role "system" :content (m/pred string?)} |
176 | | - {:role "user" :content [{:type "text" :text "hello!"}]} |
| 176 | + {:role "user" :content "hello!"} |
177 | 177 | {:role "assistant" :content "I should say hello"} |
178 | | - {:role "assistant" :content [{:type "text" :text "hello there!"}]} |
179 | | - {:role "user" :content [{:type "text" :text "how are you?"}]}]} |
| 178 | + {:role "assistant" :content "hello there!"} |
| 179 | + {:role "user" :content "how are you?"}]} |
180 | 180 | llm.mocks/*last-req-body*)))))) |
181 | 181 |
|
182 | 182 | (deftest tool-calling |
|
236 | 236 | (match-content chat-id req-id "system" {:type "progress" :state "finished"}) |
237 | 237 | (is (match? |
238 | 238 | {:model "qwen3" |
239 | | - :messages [{:role "user" :content [{:type "text" :text "What files you see?"}]} |
240 | | - {:role "assistant" :content [{:type "text" :text "I will list files"}]} |
| 239 | + :messages [{:role "user" :content "What files you see?"} |
| 240 | + {:role "assistant" :content "I will list files"} |
241 | 241 | {:role "assistant" :tool-calls [{:type "function" |
242 | 242 | :function {:id (m/pred string?) |
243 | 243 | :name "eca_directory_tree" |
|
0 commit comments