{"id":26999805,"url":"https://github.com/adem-kurt/gemini.lua","last_synced_at":"2025-04-04T03:17:52.163Z","repository":{"id":285260114,"uuid":"957540441","full_name":"Adem-Kurt/Gemini.lua","owner":"Adem-Kurt","description":"Lua library for interacting with the Gemini API.","archived":false,"fork":false,"pushed_at":"2025-03-30T16:12:38.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T17:23:59.065Z","etag":null,"topics":["gemini-api","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Adem-Kurt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-30T16:11:56.000Z","updated_at":"2025-03-30T16:54:43.000Z","dependencies_parsed_at":"2025-03-30T17:24:04.416Z","dependency_job_id":"9cb4f19a-576c-4bde-a875-b9c485ba9f78","html_url":"https://github.com/Adem-Kurt/Gemini.lua","commit_stats":null,"previous_names":["adem-kurt/gemini.lua"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adem-Kurt%2FGemini.lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adem-Kurt%2FGemini.lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adem-Kurt%2FGemini.lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adem-Kurt%2FGemini.lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adem-Kurt","download_url":"https://codeload.github.com/Adem-Kurt/Gemini.lua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247112757,"owners_count":20885606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini-api","lua"],"created_at":"2025-04-04T03:17:51.588Z","updated_at":"2025-04-04T03:17:52.149Z","avatar_url":"https://github.com/Adem-Kurt.png","language":"Lua","readme":"# Gemini.lua\r\n\r\n`gemini.lua` is a lightweight Lua library for interacting with the Gemini API.\r\n\r\n## Installation\r\n\r\nTo install `gemini.lua`, you can use Luarocks:\r\n\r\n```sh\r\nluarocks install geminilua\r\n```\r\n\r\nAlternatively, you can download the repository and include it in your Lua project manually.\r\n\r\n## Dependencies\r\n\r\n`gemini.lua` requires the following libraries:\r\n\r\n- `dkjson`\r\n- `luasocket`\r\n- `luasec`\r\n\r\nIf you installed `gemini.lua` via Luarocks, these dependencies will be installed automatically. Otherwise, you can install them manually:\r\n\r\n```sh\r\nluarocks install dkjson\r\nluarocks install luasocket\r\nluarocks install luasec\r\n```\r\n\r\n## Example Usage\r\n\r\nHere’s a basic example of how to use `gemini.lua`:\r\n\r\n```lua\r\nlocal gemini = require(\"gemini\")\r\n\r\ngemini.API_KEY = \"YOUR_API_KEY\"  -- Replace with your actual API key\r\n\r\nlocal model = gemini.models._2_0_.FLASH\r\nprint(\"What is your question?\")\r\nlocal prompt = io.read()\r\n\r\nlocal response, err = gemini.send_request(model, prompt)\r\n\r\nif response then\r\n    print(response)\r\nelse\r\n    print(\"Error:\", err)\r\nend\r\n```\r\n\r\n## Roadmap\r\n\r\nPlanned features for future releases of `gemini.lua` include:\r\n- **Media Support**: Improve functionality for sending and receiving media.\r\n- **Chat Support**: Add chat functionality to allow the library to remember previous messages and context.\r\n\r\n## Contributing\r\n\r\nIf you have suggestions for new features or improvements, feel free to open an issue or submit a pull request.\r\n\r\n## License\r\n\r\n`gemini.lua` is open-source and distributed under the MIT License.\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadem-kurt%2Fgemini.lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadem-kurt%2Fgemini.lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadem-kurt%2Fgemini.lua/lists"}