{"id":50412370,"url":"https://github.com/cskwork/web-chat-ollama","last_synced_at":"2026-05-31T04:04:58.847Z","repository":{"id":271954911,"uuid":"915094888","full_name":"cskwork/web-chat-ollama","owner":"cskwork","description":"chat with ollama with simple html --no cors","archived":false,"fork":false,"pushed_at":"2025-04-08T06:46:57.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T07:37:33.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cskwork.png","metadata":{"files":{"readme":"README-KOR.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":"2025-01-11T00:37:54.000Z","updated_at":"2025-04-08T06:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"20aa3689-4371-4218-aee3-0d3f99133403","html_url":"https://github.com/cskwork/web-chat-ollama","commit_stats":null,"previous_names":["cskwork/web-chat-ollama"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cskwork/web-chat-ollama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Fweb-chat-ollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Fweb-chat-ollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Fweb-chat-ollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Fweb-chat-ollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cskwork","download_url":"https://codeload.github.com/cskwork/web-chat-ollama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cskwork%2Fweb-chat-ollama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33718498,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":[],"created_at":"2026-05-31T04:04:58.172Z","updated_at":"2026-05-31T04:04:58.835Z","avatar_url":"https://github.com/cskwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ollama 채팅 인터페이스\n\nOllama 언어 모델과 상호작용할 수 있는 현대적인 웹 기반 채팅 인터페이스입니다. 이 애플리케이션은 다양한 Ollama 모델과 대화할 수 있는 사용자 친화적인 인터페이스를 제공하며, 모델 선택, 온도 제어, 컨텍스트 길이 조정 및 시스템 프롬프트를 지원합니다.\n\n## 주요 기능\n\n- 🤖 다양한 Ollama 모델 지원\n- 🌡️ 조절 가능한 temperature와 컨텍스트 길이\n- 💬 프리셋 관리가 가능한 커스터마이즈 시스템 프롬프트\n- 🌓 다크/라이트 테마 전환\n- 📜 채팅 기록 관리\n- 🔄 실시간 스트리밍 응답\n- 📱 다양한 화면 크기에 대응하는 반응형 디자인\n\n## 사전 요구사항\n\n- [Ollama](https://ollama.ai/)가 로컬에 설치되어 실행 중이어야 함\n- 최신 웹 브라우저 (Chrome, Firefox, Safari, Edge)\n- 최소 하나의 Ollama 모델이 설치되어 있어야 함\n\n## 설정 및 실행\n\n1. 저장소 클론:\n```bash\ngit clone https://github.com/yourusername/ollama-chat-interface.git\ncd ollama-chat-interface\n```\n\n2. Ollama가 실행 중인지 확인:\n```bash\nollama run llama2  # 또는 다른 모델\n```\n\n3. 중요: CORS 제한으로 인해 Chrome을 특정 플래그와 함께 실행해야 합니다:\n\n**Windows:**\n```bash\n\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disable-web-security --disable-gpu --user-data-dir=%LOCALAPPDATA%\\Google\\chromeTemp\n```\n\n**macOS:**\n```bash\nopen -n -a /Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --args --user-data-dir=\"/tmp/chrome_dev_test\" --disable-web-security\n```\n\n**Linux:**\n```bash\ngoogle-chrome --disable-web-security --disable-gpu --user-data-dir=/tmp/chromeTemp\n```\n\n4. 위에서 언급한 플래그와 함께 브라우저에서 `index.html` 파일을 엽니다.\n\n⚠️ **보안 참고사항**: 위에서 언급한 플래그들은 Chrome의 특정 보안 기능을 비활성화합니다. 이 설정은 로컬 개발 용도로만 사용됩니다. 일반적인 인터넷 브라우징 시에는 절대 이 플래그들을 사용하지 마세요.\n\n## 프로젝트 구조\n\n```\n├── css/\n│   └── styles.css          # 메인 스타일시트\n├── js/\n│   ├── agent.js           # Ollama API 상호작용 로직\n│   ├── chat.js           # 채팅 인터페이스 관리\n│   └── utils.js          # 유틸리티 함수\n├── index.html            # 메인 애플리케이션 페이지\n└── README.md            # 프로젝트 문서\n```\n\n## 사용법\n\n1. 드롭다운에서 원하는 Ollama 모델 선택\n2. temperature(0-2)와 컨텍스트 길이를 필요에 따라 조정\n3. 선택적으로 시스템 프롬프트를 설정하거나 프리셋에서 선택\n4. 메시지를 입력하고 Enter를 누르거나 전송 버튼 클릭\n5. 마크다운 형식의 AI 응답을 실시간으로 확인\n\n### 설정 패널\n\n- **모델 선택**: 설치된 Ollama 모델 중에서 선택\n- **Temperature**: 응답의 무작위성 제어 (0 = 결정적, 2 = 더 무작위적)\n- **컨텍스트 길이**: 컨텍스트 창 조정 (512-8192 토큰)\n- **시스템 프롬프트**: AI에 대한 사용자 지정 지침 설정\n- **테마 전환**: 다크와 라이트 테마 간 전환\n\n### 채팅 기능\n\n- 실시간 메시지 스트리밍\n- 응답에서 마크다운 지원\n- 채팅 기록 관리\n- 대화 초기화 옵션\n- 모달 알림이 포함된 오류 처리\n\n## 개발\n\n### 주요 구성 요소\n\n- **OllamaAgent**: Ollama API와의 통신 처리\n- **ChatInterface**: UI 및 사용자 상호작용 관리\n- **Utils**: 다양한 작업을 위한 헬퍼 함수 제공\n\n### 오류 처리\n\n애플리케이션에는 포괄적인 오류 처리가 포함되어 있습니다:\n- Ollama 서버와의 연결 오류\n- 모델 로딩 실패\n- 메시지 전송 오류\n- 저장소 관련 오류\n\n### 저장소\n\n애플리케이션은 다음을 위해 localStorage를 사용합니다:\n- 테마 선호도\n- 채팅 기록\n- 프리셋 시스템 프롬프트\n- 사용자 환경 설정\n\n## 기여하기\n\n1. 저장소를 포크하세요\n2. 기능 브랜치를 생성하세요: `git checkout -b feature/멋진기능`\n3. 변경사항을 커밋하세요: `git commit -m '멋진 기능 추가'`\n4. 브랜치에 푸시하세요: `git push origin feature/멋진기능`\n5. Pull Request를 열어주세요\n\n## 라이선스\n\n이 프로젝트는 MIT 라이선스를 따릅니다 - 자세한 내용은 LICENSE 파일을 참조하세요.\n\n## 감사의 말\n\n- 언어 모델 백엔드를 제공하는 [Ollama](https://ollama.ai/)\n- 마크다운 파싱을 위한 [Marked](https://marked.js.org/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcskwork%2Fweb-chat-ollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcskwork%2Fweb-chat-ollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcskwork%2Fweb-chat-ollama/lists"}