From eba1fe91b882daaa4f6636739d859a5af5ceebe8 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 20 Jan 2025 00:13:48 -0500 Subject: wip --- test.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test.lua') diff --git a/test.lua b/test.lua index b1def19..0e40d36 100755 --- a/test.lua +++ b/test.lua @@ -3,11 +3,15 @@ local luaunit = require("luaunit") local ollama = require("ollama") +local args = {} +args["ollama_endpoint"] = "http://172.17.0.1:11434/api/chat" +args["ollama_model"] = "llama3.1" + luaunit.assertEquals(ollama.ask_ollama( "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEs3GbmHMO0n1rL2vsn7+AH9xJwZ9BOUU6rR6x7hW8uX devi@terminaldweller.com", - 5), true) -luaunit.assertEquals(ollama.ask_ollama('password="12345661234"', 5), true) + args, 5), true) +luaunit.assertEquals(ollama.ask_ollama('password="12345661234"', args, 5), true) luaunit.assertEquals(ollama.ask_ollama( "W65X2UljhbM0H9kTVogZ8TnCnIqPbCvvqVUsjZ9gWxjWgFiR1Uzolouc1ghKXUyqinhVcZ1lHnXWv2jHoVRU0dC0DZdyDgYfUiHdBwAeqryc0fT6d7nxgs0UErgwOkNt8S9tKUwadRscS8VV7q2j6F5FvSfyTGflluminatevrFOcGwD1RXkJP0J2aVQWxCCszvTSNhRPTM3TeUw8dXoapXTb2IcSUwKCvAdEhemFOsgU27wF7vHYDrm6GMVofZEwAitpVQxDDPvl7qefIuXdFuDJthnxH8uUJpEbSTWXyFLaE0n5QS063grrx0ar1TCxOpJiiGTSadDeTx8OQAyemqQYj7LoYCkdKCHX7G8VSEuJlFJ6R2CM", - 5), true) -luaunit.assertEquals(ollama.ask_ollama('hello my name is', 5), false) + args, 5), true) +luaunit.assertEquals(ollama.ask_ollama('hello my name is', args, 5), false) -- cgit v1.2.3