fix: bedrock exception could be found at end of a stream (#2654)

This commit is contained in:
brook hong
2025-08-31 19:11:04 +08:00
committed by GitHub
parent 35acffad9a
commit 47877c7e8b
6 changed files with 69 additions and 6 deletions

15
lua/avante/utils/test.lua Normal file
View File

@@ -0,0 +1,15 @@
-- This is a helper for unit tests.
local M = {}
function M.read_file(fn)
fn = vim.uv.cwd() .. "/" .. fn
local file = io.open(fn, "r")
if file then
local data = file:read("*all")
file:close()
return data
end
return fn
end
return M