mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
Fix openai tests
This commit is contained in:
parent
8535dc0be2
commit
21aa430b5e
@ -363,7 +363,7 @@ async fn it_works() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -593,7 +593,7 @@ async fn tokenize_long_text() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -649,7 +649,7 @@ async fn bad_api_key() {
|
|||||||
|
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 0,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -681,7 +681,7 @@ async fn bad_api_key() {
|
|||||||
|
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "failed",
|
"status": "failed",
|
||||||
"type": "settingsUpdate",
|
"type": "settingsUpdate",
|
||||||
@ -724,7 +724,7 @@ async fn bad_api_key() {
|
|||||||
let task = server.wait_task(response.uid()).await;
|
let task = server.wait_task(response.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 2,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "failed",
|
"status": "failed",
|
||||||
"type": "settingsUpdate",
|
"type": "settingsUpdate",
|
||||||
@ -792,7 +792,7 @@ async fn bad_model() {
|
|||||||
|
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 0,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -869,7 +869,7 @@ async fn bad_dimensions() {
|
|||||||
|
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 0,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -976,7 +976,7 @@ async fn smaller_dimensions() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -1207,7 +1207,7 @@ async fn small_embedding_model() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -1437,7 +1437,7 @@ async fn legacy_embedding_model() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
@ -1668,7 +1668,7 @@ async fn it_still_works() {
|
|||||||
let task = index.wait_task(value.uid()).await;
|
let task = index.wait_task(value.uid()).await;
|
||||||
snapshot!(task, @r###"
|
snapshot!(task, @r###"
|
||||||
{
|
{
|
||||||
"uid": 1,
|
"uid": "[uid]",
|
||||||
"indexUid": "doggo",
|
"indexUid": "doggo",
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"type": "documentAdditionOrUpdate",
|
"type": "documentAdditionOrUpdate",
|
||||||
|
Loading…
Reference in New Issue
Block a user