Repository navigation
v12.39.0
Errors the API added in #161 and #162 arrive as their own exceptions, not generic ones. Same contract as @koolbase/* 12.29.0.
KoolbaseServiceUnavailableException(placement_unavailable, 503): the project's database could not be reached just now; nothing was read or written.retryableis true. Any request can meet it: a query, an upload, a sign-in.KoolbaseAutoEmbeddingManagedException(auto_embedding_managed, 409): the vector field is filled by automatic embedding, sosetVector,deleteVectorand text sent for it are refused. Write the record's fields; the vector follows.KoolbaseReembedConfirmationRequiredException(reembed_confirmation_required, 409): a change to a field's embedding would embed the collection again.estimatecarries the records, estimated input tokens, provider, model and who is billed; send the change again withconfirm_reembed: trueto make it.KoolbaseEmbeddingModelUnsupportedException(embedding_model_unsupported, 400): a model Koolbase does not offer, one shut down by its provider, or a size it cannot store.- Behaviour change: a
placement_unavailable503 used to arrive as a genericKoolbaseDataExceptionorKoolbaseStorageException. It is now the sharedKoolbaseServiceUnavailableException(likeKoolbasePlanLimitException), soon KoolbaseDataExceptionno longer catches it; catchKoolbaseExceptionfor every SDK failure. - Tested: each code maps to its exception and reports itself, in the database, storage and auth mappings; the estimate rides along.