{"id":21878322,"url":"https://github.com/pepabo/ai-assistant","last_synced_at":"2026-03-17T12:12:31.369Z","repository":{"id":153308170,"uuid":"627754884","full_name":"pepabo/ai-assistant","owner":"pepabo","description":"Interact with GPT-4 in a chat format in a browser.","archived":false,"fork":false,"pushed_at":"2023-11-14T23:21:40.000Z","size":687,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-15T03:05:14.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pepabo.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":"2023-04-14T06:10:27.000Z","updated_at":"2023-04-18T11:22:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"892bfea4-576c-47e6-8d2f-c4369a0100c6","html_url":"https://github.com/pepabo/ai-assistant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fai-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fai-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fai-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fai-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/ai-assistant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997085,"owners_count":21195799,"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":[],"created_at":"2024-11-28T08:12:18.314Z","updated_at":"2026-03-17T12:12:26.344Z","avatar_url":"https://github.com/pepabo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ai-assistant\n\nInteract with GPT-4 in a chat format in a browser.\n\n## Screenshot\n\n![](./doc/screenshot.png)\n\n## Build \u0026 Run locally\n\n```sh\ndocker build \\\n    --build-arg IMAGE_VERSION='1.0.0' \\\n    --build-arg SERVER_ADDRESS='localhost' \\\n    --build-arg BASE_URL_PATH='' \\\n    -t ai-assistant .\ndocker run \\\n    --network host \\\n    --env OPENAI_API_KEY=\"YOUR_API_KEY\" \\\n    --rm -ti \\\n    ai-assistant\nopen http://localhost:8080\n```\n\n## Build on Google Cloud Build \u0026 deploy to Google Cloud Run\n\nIMPORTANT: PLEASE ENSURE THAT ACCESS TO THE SERVICE IS RESTRICTED USING TOOLS LIKE IDENTITY-AWARE PROXY. Failing to do so may allow unauthorized individuals to send requests to OpenAI using your API key.\n\nPut a config file with the following contents.\n\n```yml\n# cloud_build_config.yaml\nsteps:\n- name: 'gcr.io/cloud-builders/docker'\n  args: [\n    'build',\n    '--build-arg',\n    'IMAGE_VERSION=${_IMAGE_VERSION}',\n    '--build-arg',\n    'SERVER_ADDRESS=${_SERVER_ADDRESS}',\n    '--build-arg',\n    'BASE_URL_PATH=${_BASE_URL_PATH}',\n    '-t',\n    'gcr.io/$PROJECT_ID/ai-assistant:${_IMAGE_VERSION}',\n    '.'\n  ]\nsubstitutions:\n  _IMAGE_VERSION: 1.0.0\n  _SERVER_ADDRESS: 0.0.0.0\nimages: [\n  'gcr.io/$PROJECT_ID/ai-assistant:${_IMAGE_VERSION}'\n]\n```\n\nand, execute the following commands.\n\n```sh\nexport BASE_URL_PATH=\"BASE_URL_PATH\"\nexport GCLOUD_PROJECT=\"YOUR_GCLOUD_PROJECT\"\nexport GCLOUD_REGION=\"YOUR_GCLOUD_REGION\"\nexport SERVICE_ACCOUNT=\"YOUR_SERVICE_ACCOUNT\"\ngcloud builds submit --config=cloud_build_config.yaml --substitutions=_BASE_URL_PATH=/${BASE_URL_PATH}\ngcloud run deploy ai-assistant --image gcr.io/${GCLOUD_PROJECT}/ai-assistant:1.0.0 \\\n    --region ${GCLOUD_REGION} --project ${GCLOUD_PROJECT} --platform managed --memory 1Gi \\\n    --service-account ${SERVICE_ACCOUNT} \\\n    --update-env-vars OPENAI_API_KEY=${OPENAI_API_KEY}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fai-assistant/lists"}