Commit graph

1040 commits

Author SHA1 Message Date
Brandon Hulston
1f66bbba98 Better solution to handle edge cases 2024-01-17 02:24:17 -07:00
Brandon Hulston
81bfb97c91 Make sure model is saved in DB for imported chats (or chats with no model saved already) 2024-01-17 02:07:29 -07:00
Brandon Hulston
415777eca2 Add error catching for import 2024-01-17 01:19:27 -07:00
Brandon Hulston
27d5eb4684 Add chatGPT chat history Import functionality 2024-01-17 01:01:11 -07:00
Marclass
cf6b3fa48a remove html type and add js/css 2024-01-17 00:34:22 -07:00
Marclass
43d8466677 feat: Add RAG support for various programming languages
Enables RAG for golang, python, java, sh, bat, powershell, cmd, js, css, c/c++/c#, sql, logs, ini, perl, r, dart, docker, env, php, haskell, lua, conf, plsql, ruby, db2, scalla, bash, swift, vue, html, xml, and other arbitrary text files.
2024-01-17 00:09:47 -07:00
Timothy Jaeryang Baek
5e32db1c57
Merge pull request #486 from bhulston/fix/chat-imports
Fix/chat imports
2024-01-16 00:36:38 -08:00
Brandon Hulston
4b3acfa491 Remove console logs 2024-01-15 18:07:31 -07:00
Brandon Hulston
3b7775a535 Fix chat import bug 2024-01-15 17:58:51 -07:00
Timothy Jaeryang Baek
26f7a1c682
Merge pull request #474 from EmelyanenkoK/patch-1
Add Docker apt repository set up for installation instructions
2024-01-14 14:35:42 -08:00
EmelyanenkoK
723db727d3
Add Docker apt repository set up for installation instructions 2024-01-14 12:10:40 +03:00
Timothy Jaeryang Baek
bc3df5ac51
Merge pull request #465 from anuraagdjain/fix/sanitized-model
fix: sanitized model name
2024-01-13 21:29:27 -08:00
Anuraag Jain
fc4235943d fix: sanitized model name 2024-01-13 09:49:22 +02:00
Timothy Jaeryang Baek
5c18d61d3f
Merge pull request #461 from djismgaming/optimization/reduce-image-size
reduce docker final image size
2024-01-12 20:00:35 -08:00
Timothy Jaeryang Baek
6d6d5b4d0d
Merge pull request #454 from anuraagdjain/feat/custom-server-port
feat: custom port for server
2024-01-12 19:48:36 -08:00
Timothy J. Baek
0e039492c6 refac: SERVER_PORT renamed to PORT 2024-01-12 19:38:30 -08:00
Ismael
141afb4c20 reduce image size
Added the option `--no-cache-dir` to the `pip3 install` commands on the Dockerfile to reduce the docker image resulting size to 1.89 GB from 2.27 GB.
2024-01-12 18:03:02 -04:00
Timothy Jaeryang Baek
ed4b3e0b32
Merge pull request #407 from anuraagdjain/feat/parallel-model-downloads
feat: parallel model downloads
2024-01-11 12:53:21 -08:00
Timothy J. Baek
12fbe9a491 Update .gitignore 2024-01-11 12:52:13 -08:00
Timothy J. Baek
bf6685d887 chore: conflict 2024-01-11 12:51:46 -08:00
Anuraag Jain
a63507c21e feat: custom port for server 2024-01-11 21:54:14 +02:00
Timothy Jaeryang Baek
5c5bde3b85
Merge pull request #451 from goecho/main
Fix bug: Header attributes (Host, Authorization, Origin, Referer) not sanitized.
2024-01-11 03:57:38 -08:00
goecho
74f91bc74d Fix bug: Header attributes (Host, Authorization, Origin, Referer) not sanitized
- Resolved an issue where header attributes Host, Authorization, Origin, and Referer were not being sanitized, resulting in two major issues:
  1. Ollama requests inadvertently exposed user information, leading to data leakage.
  2. When Ollama is deployed on different servers, and the intermediary proxy layer uses the host header to locate downstream services, it fails to find them.

Root Cause:
- In FastAPI, when accessing request.headers, all header names are converted to lowercase. This is because FastAPI, and its underlying framework Starlette, adhere to the HTTP/2 standard, which mandates lowercase header field names for performance and consistency.
- In HTTP/2, enforcing lowercase header field names reduces complexity in header processing as case sensitivity is no longer a concern. Thus, regardless of the case used in client-sent header fields, the server processes them uniformly in lowercase.
- This practice is adopted in FastAPI and other modern HTTP frameworks, even in an HTTP/1.1 context, to maintain consistency with HTTP/2 and improve overall performance. As a result, header field names are always presented in lowercase in FastAPI, even if the original request used capitalization or mixed case.
2024-01-11 14:36:34 +08:00
Timothy Jaeryang Baek
b1f29aacd8
Merge pull request #448 from ollama-webui/doc-update
doc: line break removed
2024-01-10 12:40:10 -08:00
Timothy J. Baek
482b4be1f4 doc: line break removed 2024-01-10 12:39:00 -08:00
Timothy Jaeryang Baek
524841f097
Merge pull request #443 from ollama-webui/doc-update
doc: update
2024-01-09 23:13:57 -08:00
Timothy Jaeryang Baek
9ce8bb7c6b
doc: update 2024-01-10 02:13:49 -05:00
Timothy Jaeryang Baek
2d9830b2c2
Merge pull request #442 from ollama-webui/many-models
feat: collaborative chat
2024-01-09 23:11:10 -08:00
Timothy J. Baek
a63b8c13f0 refac 2024-01-09 23:10:02 -08:00
Timothy J. Baek
737928e861 feat: better prompt gen template 2024-01-09 23:06:33 -08:00
Timothy J. Baek
9087aa0e30 fix: only ollama models 2024-01-09 22:56:43 -08:00
Timothy J. Baek
de5c02db5b doc: features 2024-01-09 22:53:22 -08:00
Timothy J. Baek
70029d9bed feat: @model group convo 2024-01-09 22:47:31 -08:00
Timothy Jaeryang Baek
1633ba4443
Merge pull request #441 from ollama-webui/rag
feat: rag md support
2024-01-09 21:10:12 -08:00
Timothy J. Baek
ffba59dc3a Update requirements.txt 2024-01-09 21:09:28 -08:00
Timothy J. Baek
c1ec604f21 feat: rag md support 2024-01-09 15:24:53 -08:00
Timothy Jaeryang Baek
358f79f533
Merge pull request #439 from ollama-webui/rag-context-management
feat: better rag context management
2024-01-09 14:34:37 -08:00
Timothy J. Baek
bf1c026666 feat: better rag context management 2024-01-09 14:33:04 -08:00
Timothy Jaeryang Baek
51eb2645b7
Merge pull request #436 from justinh-rahb/patch-1
Improved Docker docs
2024-01-09 13:37:33 -08:00
Timothy Jaeryang Baek
dcf16df166
Merge pull request #438 from ollama-webui/fix
fix: gguf upload
2024-01-09 13:34:04 -08:00
Timothy Jaeryang Baek
4f1be8eda5
Merge pull request #433 from Contribution-Tracking/shell-scripts
refactor: run.sh and run-ollama-docker.sh
2024-01-09 13:33:54 -08:00
Timothy J. Baek
76d37393ee feat: gguf upload 2024-01-09 13:25:42 -08:00
Justin Hayes
940a536f81
Update README.md
Improved Docker installation instructions.
2024-01-09 10:28:44 -05:00
Tanvir
db51c22093
refactor(run-ollama-docker.sh): update with port variables 2024-01-09 13:46:07 +06:00
Tanvir
fd33f68f28
refactor(run.sh): update with port variables 2024-01-09 13:43:55 +06:00
Tanvir
8bb68cfcae
refactor: update run.sh 2024-01-09 13:33:20 +06:00
Tanvir
f87a1c9543
refactor: update run-ollama-docker.sh 2024-01-09 13:30:58 +06:00
Tanvir
93c73d355b
chore(docker): update ollama docker image tag to latest 2024-01-09 13:28:35 +06:00
Tanvir
0c0c5955c6
feat(docker): add option to run ollama w/o GPU support 2024-01-09 13:27:39 +06:00
Tanvir
e6e05d4641
chore: add shebang to shell scripts 2024-01-09 13:21:36 +06:00