Mercurial Hosting > lang
view src/lib/ai/Ai.luan @ 36:2737eeedc1d5
autoplay
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 05 Aug 2025 17:24:47 -0600 |
parents | 3a80ddafe5a4 |
children |
line wrap: on
line source
local Luan = require "luan:Luan.luan" local error = Luan.error local ipairs = Luan.ipairs or error() error "not used for now" local Ai = {} local ais = {"claude"} local files = {"Ai_chat.luan"} for _, ai in ipairs(ais) do local mods = {} local dir = "site:/lib/ai/"..ai.."/" for _, file in ipairs(files) do mods[file] = require(dir..file) end Ai[ai] = mods end return Ai