pendra 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -539,6 +539,12 @@ interface EmbeddingCreateParams {
|
|
|
539
539
|
input: string | string[];
|
|
540
540
|
encoding_format?: "float" | "base64";
|
|
541
541
|
dimensions?: number;
|
|
542
|
+
/**
|
|
543
|
+
* What the text is for: `"document"` (the default) for text you store and
|
|
544
|
+
* search over, `"query"` for a search against it, `"none"` to embed the text
|
|
545
|
+
* exactly as sent. Pendra formats the input the way the model expects.
|
|
546
|
+
*/
|
|
547
|
+
input_type?: "query" | "document" | "none";
|
|
542
548
|
user?: string;
|
|
543
549
|
/** Pin to a specific worker (sent as the `X-Pendra-Worker-Id` header). */
|
|
544
550
|
worker_id?: string | null;
|
|
@@ -1028,4 +1034,5 @@ declare class APIStreamError extends APIError {
|
|
|
1028
1034
|
});
|
|
1029
1035
|
}
|
|
1030
1036
|
|
|
1031
|
-
export { APIConnectionError, APIError, APIResponseValidationError, APIStatusError,
|
|
1037
|
+
export { APIConnectionError, APIError, APIResponseValidationError, APIStatusError, APIStreamError, AuthenticationError, Pendra, PrivateInferenceError, RateLimitError, Stream, Pendra as default };
|
|
1038
|
+
export type { APIStatusErrorOptions, AudioFileInput, ChatCompletion, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionCreateParams, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, Choice, ChoiceDelta, CompletionTokensDetails, CreateEmbeddingResponse, Embedding, EmbeddingCreateParams, EmbeddingUsage, ImageData, ImageGenerationCreateParams, ImageResponse, Model, ModerationCreateParams, ModerationImageURLInput, ModerationInput, ModerationInputPart, ModerationResponse, ModerationResult, ModerationTextInput, PendraExtension, PendraNotice, PendraOptions, PendraTiming, PendraWebToolStep, PendraWorker, RerankCreateParams, RerankResponse, RerankResult, RerankResultDocument, SpeechCreateParams, SpeechResponse, StreamChoice, TranscriptionCreateParams, TranscriptionResponse, TranscriptionSegment, Usage };
|
package/dist/index.d.ts
CHANGED
|
@@ -539,6 +539,12 @@ interface EmbeddingCreateParams {
|
|
|
539
539
|
input: string | string[];
|
|
540
540
|
encoding_format?: "float" | "base64";
|
|
541
541
|
dimensions?: number;
|
|
542
|
+
/**
|
|
543
|
+
* What the text is for: `"document"` (the default) for text you store and
|
|
544
|
+
* search over, `"query"` for a search against it, `"none"` to embed the text
|
|
545
|
+
* exactly as sent. Pendra formats the input the way the model expects.
|
|
546
|
+
*/
|
|
547
|
+
input_type?: "query" | "document" | "none";
|
|
542
548
|
user?: string;
|
|
543
549
|
/** Pin to a specific worker (sent as the `X-Pendra-Worker-Id` header). */
|
|
544
550
|
worker_id?: string | null;
|
|
@@ -1028,4 +1034,5 @@ declare class APIStreamError extends APIError {
|
|
|
1028
1034
|
});
|
|
1029
1035
|
}
|
|
1030
1036
|
|
|
1031
|
-
export { APIConnectionError, APIError, APIResponseValidationError, APIStatusError,
|
|
1037
|
+
export { APIConnectionError, APIError, APIResponseValidationError, APIStatusError, APIStreamError, AuthenticationError, Pendra, PrivateInferenceError, RateLimitError, Stream, Pendra as default };
|
|
1038
|
+
export type { APIStatusErrorOptions, AudioFileInput, ChatCompletion, ChatCompletionChunk, ChatCompletionContentPart, ChatCompletionCreateParams, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, Choice, ChoiceDelta, CompletionTokensDetails, CreateEmbeddingResponse, Embedding, EmbeddingCreateParams, EmbeddingUsage, ImageData, ImageGenerationCreateParams, ImageResponse, Model, ModerationCreateParams, ModerationImageURLInput, ModerationInput, ModerationInputPart, ModerationResponse, ModerationResult, ModerationTextInput, PendraExtension, PendraNotice, PendraOptions, PendraTiming, PendraWebToolStep, PendraWorker, RerankCreateParams, RerankResponse, RerankResult, RerankResultDocument, SpeechCreateParams, SpeechResponse, StreamChoice, TranscriptionCreateParams, TranscriptionResponse, TranscriptionSegment, Usage };
|
package/dist/index.js
CHANGED
|
@@ -1640,6 +1640,7 @@ var Embeddings = class {
|
|
|
1640
1640
|
};
|
|
1641
1641
|
if (params.encoding_format != null) body.encoding_format = params.encoding_format;
|
|
1642
1642
|
if (params.dimensions != null) body.dimensions = params.dimensions;
|
|
1643
|
+
if (params.input_type != null) body.input_type = params.input_type;
|
|
1643
1644
|
if (params.user != null) body.user = params.user;
|
|
1644
1645
|
const headers = params.worker_id ? { "X-Pendra-Worker-Id": params.worker_id } : void 0;
|
|
1645
1646
|
if (this.client.privateInferenceEnabled) {
|
|
@@ -1956,7 +1957,7 @@ var Rerank = class {
|
|
|
1956
1957
|
};
|
|
1957
1958
|
|
|
1958
1959
|
// src/version.ts
|
|
1959
|
-
var VERSION = "0.
|
|
1960
|
+
var VERSION = "0.19.0";
|
|
1960
1961
|
var USER_AGENT = `pendra-node/${VERSION}`;
|
|
1961
1962
|
|
|
1962
1963
|
// src/client.ts
|