{"id":15136725,"url":"https://github.com/adityaoberai/gemini-chatbot-appwrite","last_synced_at":"2026-02-21T22:04:30.154Z","repository":{"id":250414325,"uuid":"834409456","full_name":"adityaoberai/gemini-chatbot-appwrite","owner":"adityaoberai","description":"Appwrite Function that accepts a text prompt and returns a generation from Gemini 1.5 Flash","archived":false,"fork":false,"pushed_at":"2024-07-28T10:40:08.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T16:56:14.914Z","etag":null,"topics":["appwrite","appwrite-function","gemini-15-flash","google-generative-ai","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adityaoberai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-27T07:19:48.000Z","updated_at":"2024-07-28T10:44:48.000Z","dependencies_parsed_at":"2024-09-26T06:40:59.419Z","dependency_job_id":null,"html_url":"https://github.com/adityaoberai/gemini-chatbot-appwrite","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"3ccd24890a8014af456c9bd09cf1f6c1359aec54"},"previous_names":["adityaoberai/gemini-chatbot-appwrite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2Fgemini-chatbot-appwrite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2Fgemini-chatbot-appwrite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2Fgemini-chatbot-appwrite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2Fgemini-chatbot-appwrite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaoberai","download_url":"https://codeload.github.com/adityaoberai/gemini-chatbot-appwrite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245542357,"owners_count":20632479,"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":["appwrite","appwrite-function","gemini-15-flash","google-generative-ai","nodejs"],"created_at":"2024-09-26T06:40:54.650Z","updated_at":"2025-10-25T23:14:30.173Z","avatar_url":"https://github.com/adityaoberai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Node Prompt Gemini Function\n\nAsk question, and let Google Gemini 1.5 Flash answer.\n\n## 🧰 Usage\n\n### POST /\n\nQuery the model for a completion.\n\n**Parameters**\n\n| Name         | Description                          | Location | Type               | Sample Value                  |\n| ------------ | ------------------------------------ | -------- | ------------------ | ----------------------------- |\n| Content-Type | The content type of the request body | Header   | `application/json` | N/A                           |\n| prompt       | Text to prompt the model             | Body     | String             | `Write a haiku about Mondays` |\n\nSample `200` Response:\n\nResponse from the model.\n\n```json\n{\n  \"ok\": true,\n  \"generation\": \"Monday's heavy weight, Dawning with a sigh of grey, Hopeful hearts await.\"\n}\n```\n\nSample `400` Response:\n\nResponse when the request body is missing.\n\n```json\n{\n  \"ok\": false,\n  \"error\": \"Missing prompt\"\n}\n```\n\nSample `500` Response:\n\nResponse when the model fails to respond.\n\n```json\n{\n  \"ok\": false,\n  \"error\": \"Failed to query model.\"\n}\n```\n\n## ⚙️ Configuration\n\n| Setting           | Value         |\n| ----------------- | ------------- |\n| Runtime           | Node (18.0)   |\n| Entrypoint        | `src/main.js` |\n| Build Commands    | `npm install` |\n| Permissions       | `any`         |\n| Timeout (Seconds) | 15            |\n\n## 🔒 Environment Variables\n\n### GEMINI_API_KEY\n\nA unique key used to authenticate with the Gemini API. Please note that this is a paid service and you will be charged for each request made to the API. For more information, see the [billing docs](https://ai.google.dev/gemini-api/docs/billing).\n\n| Question      | Answer                                                       |\n| ------------- | ------------------------------------------------------------ |\n| Required      | Yes                                                          |\n| Sample Value  | `AIz...7CQ`                                                  |\n| Documentation | [Google Docs](https://ai.google.dev/gemini-api/docs/api-key) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Fgemini-chatbot-appwrite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaoberai%2Fgemini-chatbot-appwrite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Fgemini-chatbot-appwrite/lists"}