akemon 0.1.70 → 0.1.71
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/server.js +2 -2
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -822,7 +822,7 @@ async function executeLocalTool(name, args, workdir) {
|
|
|
822
822
|
async function runLocalEngine(task, model, workdir) {
|
|
823
823
|
const apiUrl = LOCAL_API_URL + "/chat/completions";
|
|
824
824
|
const modelName = model || "gemma4:4b";
|
|
825
|
-
console.log(`[local] Task
|
|
825
|
+
console.log(`[local] Task:\n${task}`);
|
|
826
826
|
const messages = [
|
|
827
827
|
{ role: "system", content: "You are a helpful agent. Use tools when needed to complete the task. When done, reply with your final answer in plain text." },
|
|
828
828
|
{ role: "user", content: task },
|
|
@@ -878,7 +878,7 @@ async function runLocalEngine(task, model, workdir) {
|
|
|
878
878
|
// No tool calls — this is the final response
|
|
879
879
|
const content = msg.content || "";
|
|
880
880
|
if (content.trim()) {
|
|
881
|
-
console.log(`[local] Done in ${round + 1} round(s), response
|
|
881
|
+
console.log(`[local] Done in ${round + 1} round(s), response:\n${content}`);
|
|
882
882
|
return content.trim();
|
|
883
883
|
}
|
|
884
884
|
}
|