@infersec/conduit 1.66.0 → 1.68.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/ConduitConnection.d.ts +1 -2
- package/dist/benchmark/evaluation/bfclEvaluator.d.ts +1 -0
- package/dist/benchmark/evaluation/checkpoint.d.ts +7 -0
- package/dist/benchmark/evaluation/codeEvaluator.d.ts +1 -0
- package/dist/benchmark/evaluation/mbppEvaluator.d.ts +1 -0
- package/dist/cli.js +13826 -16196
- package/dist/configuration.d.ts +1 -3
- package/dist/mbppplus-DUrK5Qt0.js +2656 -0
- package/dist/modelManagement/ModelManager.d.ts +6 -6
- package/dist/modelManagement/quantization.d.ts +5 -0
- package/dist/requestHandlers/createConduitAnthropicAPIReferenceHandlers.d.ts +4 -2
- package/dist/requestHandlers/createConduitOpenAIAPIReferenceHandlers.d.ts +6 -2
- package/dist/sse/handler.d.ts +3 -2
- package/dist/utils/anthropic.d.ts +3 -2
- package/dist/utils/engineMetrics.d.ts +5 -6
- package/dist/utils/openai.d.ts +3 -2
- package/package.json +2 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ULID } from "@infersec/definitions";
|
|
2
2
|
import type { Logger } from "@infersec/logger";
|
|
3
3
|
export interface ConduitConnectionOptions {
|
|
4
4
|
apiKey: string;
|
|
5
5
|
apiURL: string;
|
|
6
|
-
engine: LLMEngine;
|
|
7
6
|
enginePort: number;
|
|
8
7
|
logger: Logger;
|
|
9
8
|
port: number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface Checkpoint<T> {
|
|
2
|
+
completedIndices: number[];
|
|
3
|
+
results: Array<T | null>;
|
|
4
|
+
}
|
|
5
|
+
export declare function loadCheckpoint<T>(filePath: string): Promise<Checkpoint<T> | null>;
|
|
6
|
+
export declare function saveCheckpoint<T>(filePath: string, checkpoint: Checkpoint<T>): Promise<void>;
|
|
7
|
+
export declare function removeCheckpoint(filePath: string): Promise<void>;
|
|
@@ -2,6 +2,7 @@ import type { BenchmarkStats, MBPPPlusProblem } from "../types.js";
|
|
|
2
2
|
export declare function loadMBPPPlusProblems(): Promise<MBPPPlusProblem[]>;
|
|
3
3
|
export declare function evaluateMBPPPlus(options: {
|
|
4
4
|
apiKey: string;
|
|
5
|
+
checkpointDir?: string;
|
|
5
6
|
completionEndpoint: string;
|
|
6
7
|
concurrency: number;
|
|
7
8
|
endpointID: string;
|