initialize
This commit is contained in:
14
tests/ollama.luau
Normal file
14
tests/ollama.luau
Normal file
@@ -0,0 +1,14 @@
|
||||
local ollama = require("@ollama")
|
||||
|
||||
local instance = ollama.serve()
|
||||
|
||||
local llmResponse = instance:generateCompletion({
|
||||
model = 'qwen3:4b',
|
||||
prompt = '/no_think Just respond with "working".'
|
||||
})
|
||||
|
||||
if not llmResponse.statusCode and llmResponse.done then
|
||||
return print('test passed')
|
||||
end
|
||||
|
||||
return print('test failed')
|
Reference in New Issue
Block a user