kairn-cli 2.2.5 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1245,9 +1245,6 @@ async function callLLM(config, userMessage, options) {
|
|
|
1245
1245
|
const messages = [
|
|
1246
1246
|
{ role: "user", content: userMessage }
|
|
1247
1247
|
];
|
|
1248
|
-
if (jsonMode) {
|
|
1249
|
-
messages.push({ role: "assistant", content: "{" });
|
|
1250
|
-
}
|
|
1251
1248
|
try {
|
|
1252
1249
|
const response = await client2.messages.create({
|
|
1253
1250
|
model: config.model,
|
|
@@ -1259,7 +1256,7 @@ async function callLLM(config, userMessage, options) {
|
|
|
1259
1256
|
if (!textBlock || textBlock.type !== "text") {
|
|
1260
1257
|
throw new Error("No text response from compiler LLM");
|
|
1261
1258
|
}
|
|
1262
|
-
return
|
|
1259
|
+
return textBlock.text;
|
|
1263
1260
|
} catch (err) {
|
|
1264
1261
|
throw new Error(classifyError(err, providerName));
|
|
1265
1262
|
}
|