fix: fix the yaml loading
This commit is contained in:
@@ -60,7 +60,7 @@ function M.load()
|
||||
if data and ok_yaml then
|
||||
local ok, result = pcall(lyaml.load, data)
|
||||
if ok and type(result) == "table" then
|
||||
local config = result[1]
|
||||
local config = result
|
||||
if type(config) == "table" then
|
||||
return {
|
||||
initial_prompt = config.initial_prompt or "",
|
||||
|
||||
Reference in New Issue
Block a user