Switch to actual instruction model. For debug, log entire object.

This commit is contained in:
William Jeynes
2026-04-02 13:18:02 +01:00
parent 2ed47980ef
commit 7e37a22058
+4 -1
View File
@@ -3,13 +3,14 @@ import { GraphNode } from "@langchain/langgraph";
import { MessagesState } from "../state";
import { ChatOllama } from "@langchain/ollama";
import { hydratePrompt } from "../prompts/hydratePrompt";
import { logger } from "../utils/logger";
export function createModelNode(tools: any, promptPath: string): GraphNode<typeof MessagesState> {
return async (state) => {
const sysPrompt = await hydratePrompt(promptPath, state);
const model = new ChatOllama({
model: "qwen3.5:9b",
model: "llama3.1:8b-instruct-fp16",
temperature: 0.7,
});
@@ -20,6 +21,8 @@ export function createModelNode(tools: any, promptPath: string): GraphNode<typeo
...state.messages,
]);
logger.error(response);
return {
messages: [response]
};