add tests on the rest embedder

This commit is contained in:
Tamo 2024-06-12 18:27:03 +02:00 committed by Louis Dureuil
parent 0d8199f3b7
commit 988552e178
No known key found for this signature in database
23 changed files with 1867 additions and 66 deletions

View file

@ -497,7 +497,7 @@ async fn query_combination() {
snapshot!(code, @"400 Bad Request");
snapshot!(response, @r###"
{
"message": "Error while generating embeddings: user error: attempt to embed the following text in a configuration where embeddings must be user provided: \"Captain\"",
"message": "Error while generating embeddings: user error: attempt to embed the following text in a configuration where embeddings must be user provided:\n - `Captain`",
"code": "vector_embedding_error",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#vector_embedding_error"