224 Commits (main)

Author SHA1 Message Date
Michael Yang d290e87513 add suffix support to generate endpoint 2 years ago
Michael Yang 5a83f79afd remove unneeded tool calls 2 years ago
Jeffrey Morgan 7ac6d462ec
server: return empty slice on empty `/api/embed` request (#5713) 2 years ago
Michael Yang d02bbebb11 tools 2 years ago
Jeffrey Morgan 9e35d9bbee
server: lowercase roles for compatibility with clients (#5695) 2 years ago
royjhan b9f5e16c80
Introduce `/api/embed` endpoint supporting batch embedding (#5127) 2 years ago
Patrick Devine 057d31861e
remove template (#5655) 2 years ago
royjhan 996bb1b85e
OpenAI: /v1/models and /v1/models/{model} compatibility (#5007) 2 years ago
Daniel Hiltgen 97c9e11768 Switch use_mmap to a pointer type 2 years ago
Daniel Hiltgen 7e7749224c Fix use_mmap parsing for modelfiles 2 years ago
royjhan fedf71635e
Extend api/show and ollama show to return more model info (#4881) 2 years ago
Daniel Hiltgen 171796791f Adjust mmap logic for cuda windows for faster model load 2 years ago
royjhan 89c79bec8c
Add ModifiedAt Field to /api/show (#5033) 2 years ago
Patrick Devine c69bc19e46
move OLLAMA_HOST to envconfig (#5009) 2 years ago
royjhan 4bf1da4944
Separate ListResponse and ModelResponse for api/tags vs api/ps (#4842) 2 years ago
Michael Yang e40145a39d lint 2 years ago
Michael Yang c895a7d13f some gocritic 2 years ago
Patrick Devine 6845988807
Ollama `ps` command for showing currently loaded models (#4327) 2 years ago
Jeffrey Morgan 6602e793c0
Use `--quantize` flag and `quantize` api parameter (#4321) 2 years ago
Bruce MacDonald c02db93243 omit empty done reason 2 years ago
Bruce MacDonald cfa84b8470
add done_reason to the api (#4235) 2 years ago
Jeffrey Morgan d5eec16d23
use model defaults for `num_gqa`, `rope_frequency_base ` and `rope_frequency_scale` (#1983) 2 years ago
Eli Bendersky d77c1c5f9d
api: fill up API documentation (#3596) 2 years ago
Jackie Li af47413dba
Add MarshalJSON to Duration (#3284) 2 years ago
Patrick Devine 9009bedf13
better checking for OLLAMA_HOST variable (#3661) 2 years ago
Jeffrey Morgan 993cf8bf55
llm: limit generation to 10x context size to avoid run on generations (#3918) 2 years ago
Daniel Hiltgen 34b9db5afc Request and model concurrency 2 years ago
Cheng 62be2050dd
chore: use errors.New to replace fmt.Errorf will much better (#3789) 2 years ago
Eli Bendersky ad90b9ab3d
api: start adding documentation to package api (#2878) 2 years ago
Michael Yang 01114b4526 fix: rope 2 years ago
Michael Yang 9502e5661f cgo quantize 2 years ago
Michael Yang e1c9a2a00f no blob create if already exists 2 years ago
Michael Yang be517e491c no rope parameters 2 years ago
Patrick Devine 1b272d5bcd
change `github.com/jmorganca/ollama` to `github.com/ollama/ollama` (#3347) 2 years ago
Patrick Devine 47cfe58af5
Default Keep Alive environment variable (#3094) 2 years ago
Jeffrey Morgan 3b4bab3dc5
Fix embeddings load model behavior (#2848) 2 years ago
Ikko Eltociear Ashimine e95b896790
Update types.go (#2744) 2 years ago
Michael Yang 897b213468
use http.DefaultClient (#2530) 2 years ago
bnorick caf2b13c10
Fix infinite keep_alive (#2480) 3 years ago
Patrick Devine b5cf31b460
add keep_alive to generate/chat/embedding api endpoints (#2146) 3 years ago
Patrick Devine 7c40a67841
Save and load sessions (#2063) 3 years ago
Michael Yang 745b5934fa add model to ModelResponse 3 years ago
Michael Yang a38d88d828 api: add model for all requests 3 years ago
Michael Yang 5ffbbea1d7 remove client.py 3 years ago
Patrick Devine 22e93efa41 add show info command and fix the modelfile 3 years ago
Brian Murray 0d6e3565ae
Add embeddings to API (#1773) 3 years ago
Jeffrey Morgan 55978c1dc9 clean up cache api option 3 years ago
Jeffrey Morgan d4ebdadbe7 enable `cache_prompt` by default 3 years ago
K0IN 10da41d677
Add Cache flag to api (#1642) 3 years ago
Bruce MacDonald d99fa6ce0a
send empty messages on last chat response (#1530) 3 years ago