meilisearch / meilisearch-js

JavaScript client for the Meilisearch API

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update `Embedder` type

mdubus opened this issue · comments

Description
The Embedder type is currently defined like this:

export type Embedder =
  | OpenAiEmbedder
  | HuggingFaceEmbedder
  | UserProvidedEmbedder

I should accept null too since this is a valid value (we can update the embedders and set one to null when we want to delete it)

Expected behavior
Accept null as a valid value