{"id":13593348,"url":"https://github.com/pors/langchain-chat-websockets","last_synced_at":"2025-10-06T22:22:23.203Z","repository":{"id":160415090,"uuid":"635312335","full_name":"pors/langchain-chat-websockets","owner":"pors","description":"LangChain LLM chat with streaming response over websockets","archived":false,"fork":false,"pushed_at":"2023-11-30T07:25:04.000Z","size":19,"stargazers_count":95,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T11:54:01.581Z","etag":null,"topics":["async","fastapi","langchain","langchain-python","llm","openai","openai-api","openai-chatgpt","websockets"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pors.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}},"created_at":"2023-05-02T12:32:18.000Z","updated_at":"2025-04-15T04:12:11.000Z","dependencies_parsed_at":"2024-01-12T12:56:02.607Z","dependency_job_id":"cd0bc385-8e9c-4b79-80b5-be61b101f27c","html_url":"https://github.com/pors/langchain-chat-websockets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pors/langchain-chat-websockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Flangchain-chat-websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Flangchain-chat-websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Flangchain-chat-websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Flangchain-chat-websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pors","download_url":"https://codeload.github.com/pors/langchain-chat-websockets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pors%2Flangchain-chat-websockets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278688079,"owners_count":26028606,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["async","fastapi","langchain","langchain-python","llm","openai","openai-api","openai-chatgpt","websockets"],"created_at":"2024-08-01T16:01:19.479Z","updated_at":"2025-10-06T22:22:23.155Z","avatar_url":"https://github.com/pors.png","language":"HTML","funding_links":[],"categories":["开源项目","Open Source Projects"],"sub_categories":["其他聊天机器人","Other / Chatbots"],"readme":"### LangChain chat with streaming response over FastAPI websockets\n\nInstall and run like:\n\n```\npip install -r requirements.txt # use a virtual env\ncp dotenv-example .env # add your secrets to the .env file\nuvicorn main:app --reload\n```\n\nOr using docker-compose :\n\n### Run with Docker Compose\n\nTo run the LangChain chat application using Docker Compose, follow these steps:\n\n1. Make sure you have [Docker](https://www.docker.com/) installed on your machine.\n\n2. Create a file named `.env` file \n\n3. Open the newly created `.env` file in a text editor and add your OpenAI API key:\n\n   ```dotenv\n   OPENAI_API_KEY=your_openai_api_key_here\n   ```\n\n   Replace `your_openai_api_key_here` with your actual OpenAI API key.\n\n4. Run the following command to build the Docker image and start the FastAPI application inside a Docker container:\n\n   ```bash\n   docker-compose up --build\n   ```\n\n5. Access the application at [http://localhost:8000](http://localhost:8000).\n\n\nThanks to [@hwchase17](https://github.com/hwchase17) for showing the way in [chat-langchain](https://github.com/hwchase17/chat-langchain/tree/master)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpors%2Flangchain-chat-websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpors%2Flangchain-chat-websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpors%2Flangchain-chat-websockets/lists"}