Mercurial Hosting > lang
annotate src/lib/ai/Ai.luan @ 25:3a80ddafe5a4
courses work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 Aug 2025 00:33:51 -0600 |
parents | 0351b3d474f8 |
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 |