Mercurial Hosting > lang
annotate src/lib/ai/Ai.luan @ 34:0fb3488a017d
show_text
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Aug 2025 23:06:19 -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 |