{"id":19874939,"url":"https://github.com/adistrim/krutrim","last_synced_at":"2026-04-09T08:18:18.665Z","repository":{"id":246757452,"uuid":"821731727","full_name":"adistrim/krutrim","owner":"adistrim","description":"Krutrim API for the chat interaction with Krutrim-spectre-v2 model using websockets","archived":false,"fork":false,"pushed_at":"2024-07-12T08:29:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T16:53:18.721Z","etag":null,"topics":["fastapi","firebase","krutrim","python","websockets"],"latest_commit_sha":null,"homepage":"","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/adistrim.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":"2024-06-29T09:22:25.000Z","updated_at":"2024-07-12T08:29:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"433d714d-a095-40f3-9394-11b09b0ee4d2","html_url":"https://github.com/adistrim/krutrim","commit_stats":null,"previous_names":["adistrim/krutrim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adistrim%2Fkrutrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adistrim%2Fkrutrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adistrim%2Fkrutrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adistrim%2Fkrutrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adistrim","download_url":"https://codeload.github.com/adistrim/krutrim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241302693,"owners_count":19940871,"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":["fastapi","firebase","krutrim","python","websockets"],"created_at":"2024-11-12T16:26:05.544Z","updated_at":"2026-04-09T08:18:18.626Z","avatar_url":"https://github.com/adistrim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Krutrim Project\n\nA FastAPI backend API that uses [Krutrim API](https://cloud.olakrutrim.com/console/inference-service?section=api-keys) for the chat interaction with Krutrim-spectre-v2 model using websocket connection.\n\nFor more information about the Krutrim API, visit the [Krutrim API Documentation](https://cloud.olakrutrim.com/console/docs?section=models).\n\n## Project Setup\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/adistrim/krutrim.git\n```\n\n2. Create `.env` file in the backend directory and add the following environment variables\n\n```env\nKRUTRIM_API_KEY=YOUR_API_KEY\nKRUTRIM_URL=KRUTRIM_URL_FROM_DOCUMENTATION\nFIREBASE_DATABASE_URL=YOUR_FIREBASE_DATABASE_URL\n```\n\n3. Generate a Firebase service account key and save it as `serviceAccountKey.json` in the backend directory.\n\n### Option 1: Virtual Environment\n\n1. Create a virtual environment\n\n```bash\npython -m venv venv\n```\n\n2. Activate the virtual environment\n\n```bash\nsource venv/bin/activate  # For Unix/macOS\nvenv\\Scripts\\activate  # For Windows\n```\n\n3. Install the dependencies\n\n```bash\npip install -r backend/requirements.txt\n```\n\n4. Run the FastAPI server\n\n```bash\ncd backend\nuvicorn app.main:app --reload\n```\n\n5. Run the test\n\n```bash\ncd ..\npython test/test.py\n```\n\n### Option 2: Docker\n\n1. Build the Docker image\n\n```bash\ncd backend\ndocker build -t krutrim-backend .\n```\n\n2. Run the Docker container\n\n```bash\ndocker run -d -p 8000:8000 krutrim-backend\n```\n\n5. Run the test\n\n```bash\ncd ..\npython test/test.py\n```\n\nNote: If your server is running on a different port, change the port in the test file on line `6` and `7`.\n\n### Frontend is still in development.\n\n## LICENSE\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadistrim%2Fkrutrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadistrim%2Fkrutrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadistrim%2Fkrutrim/lists"}