ollama/server
royjhan 987dbab0b0
OpenAI: /v1/embeddings compatibility (#5285)
* OpenAI v1 models

* Empty List Testing

* Add back envconfig

* v1/models docs

* Remove Docs

* OpenAI batch embed compatibility

* merge conflicts

* integrate with api/embed

* ep

* merge conflicts

* request tests

* rm resp test

* merge conflict

* merge conflict

* test fixes

* test fn renaming

* input validation for empty string

---------

Co-authored-by: jmorganca <jmorganca@gmail.com>
2024-07-16 13:36:08 -07:00
..
testdata/tools tools test 2024-07-15 17:18:21 -07:00
auth.go Revert "use post token" 2024-05-11 22:19:14 -07:00
download.go server: skip blob verification for already verified blobs 2024-06-05 16:39:11 -07:00
fixblobs.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
fixblobs_test.go server: replace blob prefix separator from ':' to '-' (#3146) 2024-03-14 20:18:06 -07:00
images.go tools 2024-07-15 15:26:16 -07:00
layer.go Merge pull request #3718 from ollama/mxyng/modelname-3 2024-05-29 12:02:07 -07:00
manifest.go remove ManifestV2 2024-07-01 10:40:54 -07:00
manifest_test.go remove ManifestV2 2024-07-01 10:40:54 -07:00
model.go fix unmarshal type errors 2024-07-16 11:39:34 -07:00
model_test.go fix unmarshal type errors 2024-07-16 11:39:34 -07:00
modelpath.go fix: use envconfig.ModelsDir directly (#4821) 2024-07-03 15:36:11 -07:00
modelpath_test.go add OLLAMA_MODELS to envconfig (#5029) 2024-06-13 12:52:03 -07:00
prompt.go tools 2024-07-15 15:26:16 -07:00
prompt_test.go add chat and generate tests with mock runner 2024-07-16 09:39:31 -07:00
routes.go OpenAI: /v1/embeddings compatibility (#5285) 2024-07-16 13:36:08 -07:00
routes_create_test.go add chat and generate tests with mock runner 2024-07-16 09:39:31 -07:00
routes_delete_test.go add chat and generate tests with mock runner 2024-07-16 09:39:31 -07:00
routes_generate_test.go add chat and generate tests with mock runner 2024-07-16 09:39:31 -07:00
routes_list_test.go add chat and generate tests with mock runner 2024-07-16 09:39:31 -07:00
routes_test.go server: return empty slice on empty /api/embed request (#5713) 2024-07-15 17:39:44 -07:00
sched.go sched: only error when over-allocating system memory (#5626) 2024-07-11 00:53:12 -07:00
sched_test.go Introduce /api/embed endpoint supporting batch embedding (#5127) 2024-07-15 12:14:24 -07:00
upload.go lint 2024-06-04 11:13:30 -07:00