Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rock #18

Merged
merged 4 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions rockspecs/lua-genai-0.2-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package = "lua-genai"
version = "0.2-1"
source = {
url = "https://github.com/emilrueh/lua-genai/archive/refs/tags/v0.2.tar.gz"
}
description = {
summary = "Generative AI SDK",
detailed = "Interface for generative AI providers like OpenAI, Anthropic, Google Gemini, etc. abstracting away provider-specific payload structures and response parsing to simplify switching models.",
homepage = "https://github.com/emilrueh/lua-genai",
license = "Zlib"
}
dependencies = {
"lua >= 5.1",
"lua-cjson",
"luasec"
}
build = {
type = "builtin",
modules = {
genai = "src/genai/init.lua",
["genai.features"] = "src/genai/features/init.lua",
["genai.features.chat"] = "src/genai/features/chat.lua",
["genai.genai"] = "src/genai/genai.lua",
["genai.providers"] = "src/genai/providers/init.lua",
["genai.providers.anthropic"] = "src/genai/providers/anthropic.lua",
["genai.providers.openai"] = "src/genai/providers/openai.lua",
["genai.utils"] = "src/genai/utils.lua"
}
}
29 changes: 29 additions & 0 deletions rockspecs/lua-genai-0.2.1-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package = "lua-genai"
version = "0.2.1-1"
source = {
url = "https://github.com/emilrueh/lua-genai/archive/refs/tags/v0.2.1.tar.gz"
}
description = {
summary = "Generative AI SDK",
detailed = "Interface for generative AI providers like OpenAI, Anthropic, Google Gemini, DeepSeek, etc. abstracting away provider-specific payload structures and response parsing to simplify switching models.",
homepage = "https://github.com/emilrueh/lua-genai",
license = "Zlib"
}
dependencies = {
"lua >= 5.1",
"lua-cjson",
"luasec"
}
build = {
type = "builtin",
modules = {
genai = "src/genai/init.lua",
["genai.features"] = "src/genai/features/init.lua",
["genai.features.chat"] = "src/genai/features/chat.lua",
["genai.genai"] = "src/genai/genai.lua",
["genai.providers"] = "src/genai/providers/init.lua",
["genai.providers.anthropic"] = "src/genai/providers/anthropic.lua",
["genai.providers.openai"] = "src/genai/providers/openai.lua",
["genai.utils"] = "src/genai/utils.lua"
}
}
23 changes: 0 additions & 23 deletions src/genai/config.lua

This file was deleted.

2 changes: 2 additions & 0 deletions src/genai/init.lua
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
if not table.unpack then table.unpack = unpack end

return require("genai.genai")