diff --git a/package-lock.json b/package-lock.json index 5f52c37c..b61411f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "filenamify": "^6.0.0", "fs-extra": "^11.3.0", "ignore": "^7.0.4", - "ipull": "^3.9.2", + "ipull": "^3.9.5", "is-unicode-supported": "^2.1.0", "lifecycle-utils": "^3.1.1", "log-symbols": "^7.0.1", @@ -10390,9 +10390,9 @@ } }, "node_modules/ipull": { - "version": "3.9.2", - "resolved": "https://registry.npmjs.org/ipull/-/ipull-3.9.2.tgz", - "integrity": "sha512-YbCDsqcf0ytc3b8304ygBlvRtKJTvyygkQX2xcmPkih6vdVKbRw13pDdtSR+vEqLql3owyuPj9m6iT6IfwFaCg==", + "version": "3.9.5", + "resolved": "https://registry.npmjs.org/ipull/-/ipull-3.9.5.tgz", + "integrity": "sha512-5w/yZB5lXmTfsvNawmvkCjYo4SJNuKQz/av8TC1UiOyfOHyaM+DReqbpU2XpWYfmY+NIUbRRH8PUAWsxaS+IfA==", "license": "MIT", "dependencies": { "@tinyhttp/content-disposition": "^2.2.0", @@ -10405,7 +10405,7 @@ "filenamify": "^6.0.0", "fs-extra": "^11.1.1", "is-unicode-supported": "^2.0.0", - "lifecycle-utils": "^1.3.1", + "lifecycle-utils": "^2.0.1", "lodash.debounce": "^4.0.8", "lowdb": "^7.0.1", "pretty-bytes": "^6.1.0", @@ -10430,9 +10430,9 @@ } }, "node_modules/ipull/node_modules/lifecycle-utils": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/lifecycle-utils/-/lifecycle-utils-1.7.3.tgz", - "integrity": "sha512-T7zs7J6/sgsqwVyG34Sfo5LTQmlPmmqaUe3yBhdF8nq24RtR/HtbkNZRhNbr9BEaKySdSgH+P9H5U9X+p0WjXw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lifecycle-utils/-/lifecycle-utils-2.1.0.tgz", + "integrity": "sha512-AnrXnE2/OF9PHCyFg0RSqsnQTzV991XaZA/buhFDoc58xU7rhSCDgCz/09Lqpsn4MpoPHt7TRAXV1kWZypFVsA==", "license": "MIT" }, "node_modules/ipull/node_modules/parse-ms": { diff --git a/package.json b/package.json index 4c4cda0f..6418d3e8 100644 --- a/package.json +++ b/package.json @@ -197,7 +197,7 @@ "filenamify": "^6.0.0", "fs-extra": "^11.3.0", "ignore": "^7.0.4", - "ipull": "^3.9.2", + "ipull": "^3.9.5", "is-unicode-supported": "^2.1.0", "lifecycle-utils": "^3.1.1", "log-symbols": "^7.0.1", diff --git a/src/index.ts b/src/index.ts index 0e52d2ec..66d254fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,12 +21,14 @@ import { type LlamaContextOptions, type SequenceEvaluateOptions, type BatchingOptions, type LlamaContextSequenceRepeatPenalty, type CustomBatchingDispatchSchedule, type CustomBatchingPrioritizationStrategy, type BatchItem, type PrioritizedBatchItem, type ContextShiftOptions, type ContextTokensDeleteRange, type EvaluationPriority, type SequenceEvaluateMetadataOptions, - type SequenceEvaluateOutput, type ControlledEvaluateInputItem, type ControlledEvaluateIndexOutput + type SequenceEvaluateOutput, type ControlledEvaluateInputItem, type ControlledEvaluateIndexOutput, + type LlamaContextSequenceDryRepeatPenalty } from "./evaluator/LlamaContext/types.js"; import {TokenBias} from "./evaluator/TokenBias.js"; import { - LlamaChatSession, type LlamaChatSessionOptions, type LlamaChatSessionContextShiftOptions, - type LLamaChatPromptOptions, type LLamaChatCompletePromptOptions, type LlamaChatSessionRepeatPenalty, type LLamaChatPreloadPromptOptions + LlamaChatSession, type LlamaChatSessionOptions, type LlamaChatSessionContextShiftOptions, type LLamaChatPromptOptions, + type LLamaChatCompletePromptOptions, type LlamaChatSessionRepeatPenalty, type LLamaChatPreloadPromptOptions, + type LlamaChatSessionDryRepeatPenalty } from "./evaluator/LlamaChatSession/LlamaChatSession.js"; import {defineChatSessionFunction} from "./evaluator/LlamaChatSession/utils/defineChatSessionFunction.js"; import { @@ -98,7 +100,8 @@ import { type Token, type Tokenizer, type Detokenizer, isChatModelResponseFunctionCall, isChatModelResponseSegment, type LLamaContextualRepeatPenalty, type ChatWrapperSettings, type ChatWrapperSettingsSegment, type ChatWrapperGenerateContextStateOptions, type ChatWrapperGeneratedContextState, type ChatWrapperGeneratedPrefixTriggersContextState, - type ChatWrapperGeneratedInitiallyEngagedFunctionsContextState, type ChatWrapperGenerateInitialHistoryOptions + type ChatWrapperGeneratedInitiallyEngagedFunctionsContextState, type ChatWrapperGenerateInitialHistoryOptions, + type LLamaContextualDryRepeatPenalty } from "./types.js"; import { type GbnfJsonArraySchema, type GbnfJsonBasicSchema, type GbnfJsonConstSchema, type GbnfJsonEnumSchema, type GbnfJsonStringSchema, @@ -159,6 +162,7 @@ export { type SequenceEvaluateMetadataOptions, type SequenceEvaluateOutput, type LlamaContextSequenceRepeatPenalty, + type LlamaContextSequenceDryRepeatPenalty, type ControlledEvaluateInputItem, type ControlledEvaluateIndexOutput, TokenBias, @@ -176,6 +180,7 @@ export { type LLamaChatPromptOptions, type LLamaChatCompletePromptOptions, type LlamaChatSessionRepeatPenalty, + type LlamaChatSessionDryRepeatPenalty, type LLamaChatPreloadPromptOptions, LlamaChat, type LlamaChatOptions, @@ -183,6 +188,7 @@ export { type LLamaChatLoadAndCompleteUserMessageOptions, type LLamaChatContextShiftOptions, type LLamaContextualRepeatPenalty, + type LLamaContextualDryRepeatPenalty, type LlamaChatResponse, type LlamaChatResponseFunctionCall, type LlamaChatLoadAndCompleteUserResponse,