summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-09 06:53:36 -0700
committerThePrimeAgain <theprimeagain@theprimeagain.com>2026-01-09 06:53:42 -0700
commit91ea4cfd4a46d756152e9470abe495f4b178e818 (patch)
tree66ea4ecb978eaaaf1b0a44eb7fb0f27bb54b5b08 /lua
parenta58dfd64bdacb732de63b89b6891f7cb0f41ba01 (diff)
downloada4-91ea4cfd4a46d756152e9470abe495f4b178e818.tar.xz
a4-91ea4cfd4a46d756152e9470abe495f4b178e818.zip
small bug fixes, format, and tests running
Diffstat (limited to 'lua')
-rw-r--r--lua/99/logger/logger.lua5
-rw-r--r--lua/99/ops/fill-in-function.lua3
2 files changed, 6 insertions, 2 deletions
diff --git a/lua/99/logger/logger.lua b/lua/99/logger/logger.lua
index 5ccf3c4..fdc010a 100644
--- a/lua/99/logger/logger.lua
+++ b/lua/99/logger/logger.lua
@@ -199,7 +199,10 @@ function Logger:configure(opts)
if opts.type == "print" then
self:print_sink()
elseif opts.type == "file" then
- assert(opts.path, "if you choose file for logger, you must have a path specified")
+ assert(
+ opts.path,
+ "if you choose file for logger, you must have a path specified"
+ )
self:file_sink(opts.path)
else
self:void_sink()
diff --git a/lua/99/ops/fill-in-function.lua b/lua/99/ops/fill-in-function.lua
index dfc4794..b29c3da 100644
--- a/lua/99/ops/fill-in-function.lua
+++ b/lua/99/ops/fill-in-function.lua
@@ -61,7 +61,8 @@ local function fill_in_function(context, additional_prompt)
local request = Request.new(context)
local full_prompt = context._99.prompts.prompts.fill_in_function()
if additional_prompt then
- full_prompt = context._99.prompts.prompts.prompt(additional_prompt, full_prompt)
+ full_prompt =
+ context._99.prompts.prompts.prompt(additional_prompt, full_prompt)
end
request:add_prompt_content(full_prompt)