{"id":20507702,"url":"https://github.com/chesterxalan/streamlit-llm","last_synced_at":"2026-04-11T13:34:45.466Z","repository":{"id":247968193,"uuid":"827368312","full_name":"chesterXalan/Streamlit-LLM","owner":"chesterXalan","description":"Streamlit 範例程式，實作 ChatGPT 與 LangChain","archived":false,"fork":false,"pushed_at":"2024-07-16T12:05:58.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T22:03:46.077Z","etag":null,"topics":["chatgpt","langchain","poetry","python","streamlit"],"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/chesterXalan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-07-11T14:14:59.000Z","updated_at":"2024-07-16T12:06:01.000Z","dependencies_parsed_at":"2024-07-16T14:47:20.899Z","dependency_job_id":null,"html_url":"https://github.com/chesterXalan/Streamlit-LLM","commit_stats":null,"previous_names":["chesterxalan/streamlit_demo","chesterxalan/streamlit-llm"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/chesterXalan/Streamlit-LLM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesterXalan%2FStreamlit-LLM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesterXalan%2FStreamlit-LLM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesterXalan%2FStreamlit-LLM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesterXalan%2FStreamlit-LLM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chesterXalan","download_url":"https://codeload.github.com/chesterXalan/Streamlit-LLM/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chesterXalan%2FStreamlit-LLM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chatgpt","langchain","poetry","python","streamlit"],"created_at":"2024-11-15T20:15:11.288Z","updated_at":"2026-04-11T13:34:45.433Z","avatar_url":"https://github.com/chesterXalan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamlit-LLM\n\nStreamlit 範例程式，實作 ChatGPT 與 LangChain\n\n## 功能介紹\n\n目前有以下功能：\n\n- **聊天** (與 ChatGPT 進行聊天)\n- **翻譯** (整合 LangChain 將輸入內容翻譯成選擇的語言)\n\n## 前置作業\n\n### 虛擬環境\n\n安裝所需套件 (使用 [Poetry](https://blog.kyomind.tw/python-poetry/)，建議把環境安裝在專案目錄)：\n\n```sh\npoetry install\n```\n\n進入環境：\n\n```sh\npoetry shell\n```\n\n---\n\n### 環境變數\n\n依照 `.env.example` 的內容設定環境變數，並將其改名為 `.env`\n\n## 使用方法\n\n### 開啟 Streamlit 介面\n\n使用 [make](https://tehub.com/a/aCYp1uw0tG) 指令 (用第二種方法安裝)：\n\n```sh\nmake streamlit\n```\n\n不想用 `make` 的話，請使用指令：\n\n```sh\nstreamlit run _home.py\n```\n\n基本上會自動開啟網頁，如果沒有的話請開啟網址 (`port` 預設為 8501)：\n\n\u003e \u003chttp://localhost:8501\u003e\n\n如果想修改 `port` ，請將指令改為：\n\n```sh\nstreamlit run _home.py --server.port {port_number}\n```\n\n---\n\n### 運行靜態檢查與自動排版\n\n輸入指令：\n\n```sh\nmake lint\n```\n\n不想用 `make` 的話，請依序執行以下指令：\n\n```sh\nruff check --select I --fix\nruff format\nruff check\nmypy .\n```\n\n## 測試方法\n\n輸入指令就會自動執行 `tests` 資料夾內的所有測試：\n\n```sh\npytest\n```\n\n也可以用 VS Code 自帶的測試功能\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesterxalan%2Fstreamlit-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchesterxalan%2Fstreamlit-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchesterxalan%2Fstreamlit-llm/lists"}