René's URL Explorer Experiment


Title: GitHub - leafo/lua-openai: OpenAI API bindings for Lua

Open Graph Title: GitHub - leafo/lua-openai: OpenAI API bindings for Lua

X Title: GitHub - leafo/lua-openai: OpenAI API bindings for Lua

Description: OpenAI API bindings for Lua. Contribute to leafo/lua-openai development by creating an account on GitHub.

Open Graph Description: OpenAI API bindings for Lua. Contribute to leafo/lua-openai development by creating an account on GitHub.

X Description: OpenAI API bindings for Lua. Contribute to leafo/lua-openai development by creating an account on GitHub.

Opengraph URL: https://github.com/leafo/lua-openai

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:fa903794-3c08-b22a-af30-128be4cf993c
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idAACE:43164:5C5E482:7E1F526:698CE7FC
html-safe-nonceb3072b40e8b856db29e792f290a0b2bcc1e2239ec46e2cf6bdf9a5c096f83dcf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUNFOjQzMTY0OjVDNUU0ODI6N0UxRjUyNjo2OThDRTdGQyIsInZpc2l0b3JfaWQiOiIyNzUyMjY4Mzc1NjU2NTU2NTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac18e698d82a9892872cea067c993e4eb2cbb08a08ca77dd88576c8043e387fa10
hovercard-subject-tagrepository:635075559
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/leafo/lua-openai
twitter:imagehttps://opengraph.githubassets.com/cbe6dd9a20847f4b88abc7f31f844be6362657e1399bb4f864b1b17d6460f6d0/leafo/lua-openai
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cbe6dd9a20847f4b88abc7f31f844be6362657e1399bb4f864b1b17d6460f6d0/leafo/lua-openai
og:image:altOpenAI API bindings for Lua. Contribute to leafo/lua-openai development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/leafo/lua-openai git https://github.com/leafo/lua-openai.git
octolytics-dimension-user_id15198
octolytics-dimension-user_loginleafo
octolytics-dimension-repository_id635075559
octolytics-dimension-repository_nwoleafo/lua-openai
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id635075559
octolytics-dimension-repository_network_root_nwoleafo/lua-openai
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/leafo/lua-openai#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fleafo%2Flua-openai
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fleafo%2Flua-openai
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=leafo%2Flua-openai
Reloadhttps://patch-diff.githubusercontent.com/leafo/lua-openai
Reloadhttps://patch-diff.githubusercontent.com/leafo/lua-openai
Reloadhttps://patch-diff.githubusercontent.com/leafo/lua-openai
leafo https://patch-diff.githubusercontent.com/leafo
lua-openaihttps://patch-diff.githubusercontent.com/leafo/lua-openai
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fleafo%2Flua-openai
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2Fleafo%2Flua-openai
Star 80 https://patch-diff.githubusercontent.com/login?return_to=%2Fleafo%2Flua-openai
MIT license https://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/LICENSE
80 stars https://patch-diff.githubusercontent.com/leafo/lua-openai/stargazers
8 forks https://patch-diff.githubusercontent.com/leafo/lua-openai/forks
Branches https://patch-diff.githubusercontent.com/leafo/lua-openai/branches
Tags https://patch-diff.githubusercontent.com/leafo/lua-openai/tags
Activity https://patch-diff.githubusercontent.com/leafo/lua-openai/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fleafo%2Flua-openai
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fleafo%2Flua-openai
Code https://patch-diff.githubusercontent.com/leafo/lua-openai
Issues 2 https://patch-diff.githubusercontent.com/leafo/lua-openai/issues
Pull requests 4 https://patch-diff.githubusercontent.com/leafo/lua-openai/pulls
Actions https://patch-diff.githubusercontent.com/leafo/lua-openai/actions
Security 0 https://patch-diff.githubusercontent.com/leafo/lua-openai/security
Insights https://patch-diff.githubusercontent.com/leafo/lua-openai/pulse
Code https://patch-diff.githubusercontent.com/leafo/lua-openai
Issues https://patch-diff.githubusercontent.com/leafo/lua-openai/issues
Pull requests https://patch-diff.githubusercontent.com/leafo/lua-openai/pulls
Actions https://patch-diff.githubusercontent.com/leafo/lua-openai/actions
Security https://patch-diff.githubusercontent.com/leafo/lua-openai/security
Insights https://patch-diff.githubusercontent.com/leafo/lua-openai/pulse
Brancheshttps://patch-diff.githubusercontent.com/leafo/lua-openai/branches
Tagshttps://patch-diff.githubusercontent.com/leafo/lua-openai/tags
https://patch-diff.githubusercontent.com/leafo/lua-openai/branches
https://patch-diff.githubusercontent.com/leafo/lua-openai/tags
94 Commitshttps://patch-diff.githubusercontent.com/leafo/lua-openai/commits/main/
https://patch-diff.githubusercontent.com/leafo/lua-openai/commits/main/
.github/workflowshttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/.github/workflows
.github/workflowshttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/.github/workflows
exampleshttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/examples
exampleshttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/examples
openaihttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/openai
openaihttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/openai
spechttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/spec
spechttps://patch-diff.githubusercontent.com/leafo/lua-openai/tree/main/spec
.gitignorehttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/.gitignore
LICENSEhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/LICENSE
LICENSEhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/LICENSE
Makefilehttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/Makefile
Makefilehttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/Makefile
README.mdhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/README.md
README.mdhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/README.md
lua-openai-dev-1.rockspechttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/lua-openai-dev-1.rockspec
lua-openai-dev-1.rockspechttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/lua-openai-dev-1.rockspec
openai.luahttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/openai.lua
openai.luahttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/openai.lua
openai.moonhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/openai.moon
openai.moonhttps://patch-diff.githubusercontent.com/leafo/lua-openai/blob/main/openai.moon
READMEhttps://patch-diff.githubusercontent.com/leafo/lua-openai
MIT licensehttps://patch-diff.githubusercontent.com/leafo/lua-openai
https://patch-diff.githubusercontent.com/leafo/lua-openai#lua-openai
OpenAI HTTP APIhttps://platform.openai.com/docs/api-reference
lapis.nginx.httphttps://leafo.net/lapis/reference/utilities.html#making-http-requests
Google Geminihttps://patch-diff.githubusercontent.com/leafo/lua-openai#using-with-google-gemini
OpenRouterhttps://patch-diff.githubusercontent.com/leafo/lua-openai#using-with-openrouter
https://patch-diff.githubusercontent.com/leafo/lua-openai#install
https://patch-diff.githubusercontent.com/leafo/lua-openai#quick-usage
https://patch-diff.githubusercontent.com/leafo/lua-openai#chat-session-example
https://patch-diff.githubusercontent.com/leafo/lua-openai#streaming-response-example
https://patch-diff.githubusercontent.com/leafo/lua-openai#documentation
https://patch-diff.githubusercontent.com/leafo/lua-openai#classes
https://patch-diff.githubusercontent.com/leafo/lua-openai#openai
https://patch-diff.githubusercontent.com/leafo/lua-openai#newapi_key-config
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientnew_chat_session
ChatSessionhttps://patch-diff.githubusercontent.com/leafo/lua-openai#chatsession
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientnew_responses_chat_session
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientcreate_chat_completionmessages-opts-chunk_callback
https://platform.openai.com/docs/api-reference/chathttps://platform.openai.com/docs/api-reference/chat
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientchatmessages-opts-chunk_callback
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientcompletionprompt-opts
https://platform.openai.com/docs/api-reference/completionshttps://platform.openai.com/docs/api-reference/completions
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientembeddinginput-opts
https://platform.openai.com/docs/api-reference/embeddingshttps://platform.openai.com/docs/api-reference/embeddings
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientcreate_responseinput-opts-stream_callback
https://platform.openai.com/docs/api-reference/responseshttps://platform.openai.com/docs/api-reference/responses
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientresponseresponse_id
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientdelete_responseresponse_id
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientcancel_responseresponse_id
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientmoderationinput-opts
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientmodels
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientfiles
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientfilefile_id
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientdelete_filefile_id
https://patch-diff.githubusercontent.com/leafo/lua-openai#clientimage_generationparams
https://platform.openai.com/docs/api-reference/images/createhttps://platform.openai.com/docs/api-reference/images/create
https://patch-diff.githubusercontent.com/leafo/lua-openai#responseschatsession
https://patch-diff.githubusercontent.com/leafo/lua-openai#newclient-opts
https://patch-diff.githubusercontent.com/leafo/lua-openai#sessionsendinput-stream_callback
https://patch-diff.githubusercontent.com/leafo/lua-openai#sessioncreate_responseinput-opts-stream_callback
https://patch-diff.githubusercontent.com/leafo/lua-openai#chatsession
https://patch-diff.githubusercontent.com/leafo/lua-openai#newclient-opts-1
https://patch-diff.githubusercontent.com/leafo/lua-openai#chatappend_messagem-
https://patch-diff.githubusercontent.com/leafo/lua-openai#chatlast_message
https://patch-diff.githubusercontent.com/leafo/lua-openai#chatsendmessage-stream_callbacknil
https://patch-diff.githubusercontent.com/leafo/lua-openai#chatgenerate_responseappend_response-stream_callbacknil
https://patch-diff.githubusercontent.com/leafo/lua-openai#using-with-google-gemini
OpenAI-compatible endpointhttps://ai.google.dev/gemini-api/docs/openai
https://patch-diff.githubusercontent.com/leafo/lua-openai#chat-sessions-with-gemini
https://patch-diff.githubusercontent.com/leafo/lua-openai#embeddings-with-gemini
https://patch-diff.githubusercontent.com/leafo/lua-openai#using-with-openrouter
OpenRouterhttps://openrouter.ai/
OpenAI-compatible endpointhttps://openrouter.ai/docs/quickstart
https://patch-diff.githubusercontent.com/leafo/lua-openai#appendix
https://patch-diff.githubusercontent.com/leafo/lua-openai#chat-session-with-functions
sending a list of function declarationshttps://openai.com/blog/function-calling-and-other-api-updates
https://github.com/leafo/lua-openai/blob/main/examples/example5.luahttps://github.com/leafo/lua-openai/blob/main/examples/example5.lua
lua https://patch-diff.githubusercontent.com/topics/lua
moonscript https://patch-diff.githubusercontent.com/topics/moonscript
lapis https://patch-diff.githubusercontent.com/topics/lapis
openresty https://patch-diff.githubusercontent.com/topics/openresty
openai https://patch-diff.githubusercontent.com/topics/openai
gpt https://patch-diff.githubusercontent.com/topics/gpt
chatgpt https://patch-diff.githubusercontent.com/topics/chatgpt
Readme https://patch-diff.githubusercontent.com/leafo/lua-openai#readme-ov-file
MIT license https://patch-diff.githubusercontent.com/leafo/lua-openai#MIT-1-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/leafo/lua-openai
Activityhttps://patch-diff.githubusercontent.com/leafo/lua-openai/activity
80 starshttps://patch-diff.githubusercontent.com/leafo/lua-openai/stargazers
3 watchinghttps://patch-diff.githubusercontent.com/leafo/lua-openai/watchers
8 forkshttps://patch-diff.githubusercontent.com/leafo/lua-openai/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fleafo%2Flua-openai&report=leafo+%28user%29
Releases 7https://patch-diff.githubusercontent.com/leafo/lua-openai/releases
OpenRouter compatibility client Latest Jan 20, 2026 https://patch-diff.githubusercontent.com/leafo/lua-openai/releases/tag/v1.6.0
+ 6 releaseshttps://patch-diff.githubusercontent.com/leafo/lua-openai/releases
Please reload this pagehttps://patch-diff.githubusercontent.com/leafo/lua-openai
Contributors 2https://patch-diff.githubusercontent.com/leafo/lua-openai/graphs/contributors
Please reload this pagehttps://patch-diff.githubusercontent.com/leafo/lua-openai
MoonScript 63.1% https://patch-diff.githubusercontent.com/leafo/lua-openai/search?l=moonscript
Lua 36.5% https://patch-diff.githubusercontent.com/leafo/lua-openai/search?l=lua
Makefile 0.4% https://patch-diff.githubusercontent.com/leafo/lua-openai/search?l=makefile
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.