New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] UNSUPPORTED MEDIA TYPE for EmbedderOpenAICompatibleConfig #723
Comments
hi, thanks for this bug report. Again, thanks for the report! |
@valentimarco Here are the corrections I made locally and now it works: ` def embed_documents(self, texts: List[str]) -> List[List[float]]:
|
@piperino11 would you like to open a PR? Would be great and we can move it on the fix of the all OpenAIcompatible class |
@piperino11 please check if the issue is still present in |
I created a flask server to use SentenceTransformer("multi-qa-MiniLM-L6-cos-v1")
with EmbedderOpenAICompatibleConfig
I can't handle requests with error "POST /v1/embeddings HTTP/1.1" 415 -
In particular on the cat side I have the error
File "/app/cat/factory/custom_embedder.py", line 59, in embed_documents
ret.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 759, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '415 UNSUPPORTED MEDIA TYPE' for url 'http://server:port/v1/embeddings'
The specification on the content-type of the Header seems to be missing or am I wrong?
The text was updated successfully, but these errors were encountered: