{"id":15549363,"url":"https://github.com/adityaoberai/characterchat","last_synced_at":"2026-04-09T08:44:15.306Z","repository":{"id":231348491,"uuid":"781540794","full_name":"adityaoberai/CharacterChat","owner":"adityaoberai","description":"Appwrite function to enable chatting with fictional characters","archived":false,"fork":false,"pushed_at":"2024-04-03T16:31:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T06:42:19.411Z","etag":null,"topics":["appwrite","nodejs","openai"],"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}},"created_at":"2024-04-03T15:19:49.000Z","updated_at":"2024-04-16T13:31:01.000Z","dependencies_parsed_at":"2024-04-03T16:59:09.880Z","dependency_job_id":"23cafdc1-9cf2-41c1-b51a-75c99836e837","html_url":"https://github.com/adityaoberai/CharacterChat","commit_stats":null,"previous_names":["adityaoberai/characterchat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FCharacterChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FCharacterChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FCharacterChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adityaoberai%2FCharacterChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adityaoberai","download_url":"https://codeload.github.com/adityaoberai/CharacterChat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256114,"owners_count":20909240,"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","nodejs","openai"],"created_at":"2024-10-02T13:38:33.250Z","updated_at":"2026-04-09T08:44:10.274Z","avatar_url":"https://github.com/adityaoberai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Character Chat\n\nOpenAI Function to chat with a popular fictional character\n\n## 🧰 Usage\n\n### POST /\n\n- Returns an answer from your preferred fictional character\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| character            | Name of the fictional character        | Body     | String             | `Bruce Wayne`                                                                       |\n| question             | Question to be answered by Bruce Wayne | Body     | String             | `Are you Batman?`                                                                   |\n| additionalPrompt     | Question to be answered by Bruce Wayne | Body     | String             | `Ensure that you don't reveal your Batman alter-ego but you can tip-toe around it.` |\n\n\n**Request**\n\n```\n{\n  \"character\": \"Bruce Wayne\",\n  \"question\": \"Are you Batman?\",\n  \"additionalPrompt\": \"Ensure that you don't reveal your Batman alter-ego but you can tip-toe around it.\"\n}\n```\n\n**Response**\n\nSample `200` Response:\n\n```json\n{\n  \"ok\": true,\n  \"answer\": \"As flattering as it is to be associated with such an iconic figure, I'm afraid I'm just a businessman with a keen interest in the welfare of Gotham City. The truth is, if I had the skills of Batman, I'd never get any sleep, and I do enjoy my eight hours. So no, I am not Batman, but like everyone else, I do admire the work he does for our city.\"\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) | 60            |\n\n## 🔒 Environment Variables\n\n- `OPENAI_API_KEY`: API Key from our OpenAI account\n- `OPENAI_MAX_TOKENS`: Maximum number of tokens that the OpenAI response should contain (we’ll set this as `512`)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Fcharacterchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityaoberai%2Fcharacterchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityaoberai%2Fcharacterchat/lists"}