weaviate / t2v-transformers-models

This is the repo for the container that holds the models for the text2vec-transformers module
BSD 3-Clause "New" or "Revised" License
40 stars 27 forks source link

Add duplicate /vectors route to remove 307 redirects, fixes #34 #43

Closed trengrj closed 1 year ago

trengrj commented 1 year ago

Currently, Weaviate is configured to POST to /vectors however the module listens on /vectors/ causing many 307 HTTP redirects:

INFO:     127.0.0.1:59650 - "POST /vectors HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:59651 - "POST /vectors HTTP/1.1" 307 Temporary Redirect
INFO:     127.0.0.1:59662 - "POST /vectors/ HTTP/1.1" 200 OK
INFO:     127.0.0.1:59663 - "POST /vectors/ HTTP/1.1" 200 OK

This PR adds a duplicate route to remove the 307. It is non breaking as we leave the original route alone (though we should deprecate it).