Mercurial Hosting > lang
annotate src/lib/ai/Ai.luan @ 5:a970b7a01a74
start ai
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 16 Jul 2025 15:08:14 -0600 |
parents | 78708fa556a0 |
children | 025bb19b65b1 |
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 | |
6 local Ai = {} | |
7 | |
5 | 8 local ais = {"chatgpt"} |
9 local files = {"Chat.luan"} | |
10 for _, ai in ipairs(ais) do | |
11 local mods = {} | |
12 local dir = "site:/lib/ai/"..ai.."/" | |
13 for _, file in ipairs(files) do | |
14 mods[file] = require(dir..file) | |
15 end | |
16 Ai[ai] = mods | |
2 | 17 end |
18 | |
19 return Ai |