Mercurial Hosting > lang
annotate src/lib/ai/Ai.luan @ 29:505185272dd7
edit chat
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Sat, 02 Aug 2025 22:39:48 -0600 |
| parents | 3a80ddafe5a4 |
| children |
| rev | line source |
|---|---|
| 2 | 1 local Luan = require "luan:Luan.luan" |
| 2 local error = Luan.error | |
| 5 | 3 local ipairs = Luan.ipairs or error() |
| 2 | 4 |
| 5 | |
| 25 | 6 error "not used for now" |
| 7 | |
| 2 | 8 local Ai = {} |
| 9 | |
| 6 | 10 local ais = {"claude"} |
| 19 | 11 local files = {"Ai_chat.luan"} |
| 5 | 12 for _, ai in ipairs(ais) do |
| 13 local mods = {} | |
| 14 local dir = "site:/lib/ai/"..ai.."/" | |
| 15 for _, file in ipairs(files) do | |
| 16 mods[file] = require(dir..file) | |
| 17 end | |
| 18 Ai[ai] = mods | |
| 2 | 19 end |
| 20 | |
| 21 return Ai |
