Skip to content
1 min read · 136 words

@nhtio/adk/batteries/embeddings/openai

OpenAI Embeddings adapter battery — the environment-neutral embeddings battery and owner of the shared embeddings option base.

Remarks

Re-exports the adapter class, the shared prefix helper, every option / wire-shape type alias (including the shared BaseEmbeddingsAdapterOptions, EmbeddingKind, EmbedOptions, and EmbeddingsRetryConfig that the WebLLM Embeddings battery builds on), the validation schema + validateOptions wrapper, and the battery-scoped exceptions.

References

applyEmbeddingPrefix

Re-exports applyEmbeddingPrefix


BaseEmbeddingsAdapterOptions

Re-exports BaseEmbeddingsAdapterOptions


E_INVALID_OPENAI_EMBEDDINGS_OPTIONS

Re-exports E_INVALID_OPENAI_EMBEDDINGS_OPTIONS


E_OPENAI_EMBEDDINGS_HTTP_ERROR

Re-exports E_OPENAI_EMBEDDINGS_HTTP_ERROR


E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE

Re-exports E_OPENAI_EMBEDDINGS_MALFORMED_RESPONSE


E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT

Re-exports E_OPENAI_EMBEDDINGS_REQUEST_TIMEOUT


EmbeddingKind

Re-exports EmbeddingKind


EmbeddingsRetryConfig

Re-exports EmbeddingsRetryConfig


EmbedOptions

Re-exports EmbedOptions


OpenAIEmbeddingsAdapter

Re-exports OpenAIEmbeddingsAdapter


OpenAIEmbeddingsAdapterOptions

Re-exports OpenAIEmbeddingsAdapterOptions


openAIEmbeddingsOptionsSchema

Re-exports openAIEmbeddingsOptionsSchema


OpenAIEmbeddingsRequestBody

Re-exports OpenAIEmbeddingsRequestBody


OpenAIEmbeddingsResponseBody

Re-exports OpenAIEmbeddingsResponseBody


validateOptions

Re-exports validateOptions