opik 2.2.94 → 2.2.95
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/chunk-T4MNYA6L.js +404 -0
- package/dist/cli.js +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/{suite-S7UXHRSD.js → suite-WCNEGQY5.js} +1 -1
- package/package.json +1 -1
- package/dist/chunk-4LFLLFDK.js +0 -404
package/dist/index.d.cts
CHANGED
|
@@ -855,6 +855,8 @@ interface ChatCompletionRequest {
|
|
|
855
855
|
metadata?: Record<string, string>;
|
|
856
856
|
reasoningEffort?: string;
|
|
857
857
|
serviceTier?: string;
|
|
858
|
+
promptCacheKey?: string;
|
|
859
|
+
promptCacheOptions?: PromptCacheOptions;
|
|
858
860
|
logprobs?: boolean;
|
|
859
861
|
topLogprobs?: number;
|
|
860
862
|
functions?: Function$1[];
|
|
@@ -6891,6 +6893,11 @@ interface ProjectStatsSummaryItem {
|
|
|
6891
6893
|
errorCount?: ErrorCountWithDeviation;
|
|
6892
6894
|
}
|
|
6893
6895
|
|
|
6896
|
+
interface PromptCacheOptions {
|
|
6897
|
+
mode?: string;
|
|
6898
|
+
ttl?: string;
|
|
6899
|
+
}
|
|
6900
|
+
|
|
6894
6901
|
interface PromptDetail {
|
|
6895
6902
|
id?: string;
|
|
6896
6903
|
name: string;
|
|
@@ -6949,6 +6956,7 @@ type PromptPublicTemplateStructure = (typeof PromptPublicTemplateStructure)[keyo
|
|
|
6949
6956
|
|
|
6950
6957
|
interface PromptTokensDetails {
|
|
6951
6958
|
cachedTokens?: number;
|
|
6959
|
+
cacheWriteTokens?: number;
|
|
6952
6960
|
}
|
|
6953
6961
|
|
|
6954
6962
|
interface PromptVariant {
|
package/dist/index.d.ts
CHANGED
|
@@ -855,6 +855,8 @@ interface ChatCompletionRequest {
|
|
|
855
855
|
metadata?: Record<string, string>;
|
|
856
856
|
reasoningEffort?: string;
|
|
857
857
|
serviceTier?: string;
|
|
858
|
+
promptCacheKey?: string;
|
|
859
|
+
promptCacheOptions?: PromptCacheOptions;
|
|
858
860
|
logprobs?: boolean;
|
|
859
861
|
topLogprobs?: number;
|
|
860
862
|
functions?: Function$1[];
|
|
@@ -6891,6 +6893,11 @@ interface ProjectStatsSummaryItem {
|
|
|
6891
6893
|
errorCount?: ErrorCountWithDeviation;
|
|
6892
6894
|
}
|
|
6893
6895
|
|
|
6896
|
+
interface PromptCacheOptions {
|
|
6897
|
+
mode?: string;
|
|
6898
|
+
ttl?: string;
|
|
6899
|
+
}
|
|
6900
|
+
|
|
6894
6901
|
interface PromptDetail {
|
|
6895
6902
|
id?: string;
|
|
6896
6903
|
name: string;
|
|
@@ -6949,6 +6956,7 @@ type PromptPublicTemplateStructure = (typeof PromptPublicTemplateStructure)[keyo
|
|
|
6949
6956
|
|
|
6950
6957
|
interface PromptTokensDetails {
|
|
6951
6958
|
cachedTokens?: number;
|
|
6959
|
+
cacheWriteTokens?: number;
|
|
6952
6960
|
}
|
|
6953
6961
|
|
|
6954
6962
|
interface PromptVariant {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ia}from'./chunk-
|
|
1
|
+
import {Ia}from'./chunk-T4MNYA6L.js';export{va as AgentTaskCompletionJudge,ua as AgentToolCorrectnessJudge,ia as AnswerRelevance,ea as BaseLLMJudgeMetric,F as BaseMetric,G as BaseSuiteEvaluator,s as ChatPrompt,xa as ComplianceRiskJudge,l as ConfigMismatchError,k as ConfigNotFoundError,ba as Contains,B as DEFAULT_EXECUTION_POLICY,m as Dataset,i as DatasetVersion,j as DatasetVersionNotFoundError,pa as DemographicBiasJudge,na as DialogueHelpfulnessJudge,aa as ExactMatch,ja as GEval,ka as GEvalPreset,ra as GenderBiasJudge,ha as Hallucination,da as IsJson,T as LLMJudge,K as ModelConfigurationError,I as ModelError,J as ModelGenerationError,fa as Moderation,Fa as OPIK_PARENT_SPAN_ID_HEADER,Ea as OPIK_TRACE_ID_HEADER,Da as Opik,H as OpikBaseModel,t as OpikQueryLanguage,g as OpikSpanType,qa as PoliticalBiasJudge,r as Prompt,n as PromptType,wa as PromptUncertaintyJudge,oa as QARelevanceJudge,ca as RegexMatch,ta as RegionalBiasJudge,sa as ReligiousBiasJudge,S as ResponseSchema,Q as SYSTEM_PROMPT,ma as SummarizationCoherenceJudge,la as SummarizationConsistencyJudge,E as TASK_ERROR_SCORE_NAME,Ba as TestSuite,C as TestSuiteResult,v as ThreadsAnnotationQueue,u as TracesAnnotationQueue,R as USER_PROMPT_TEMPLATE,ga as Usefulness,M as VercelAIChatModel,y as activateRunner,w as agentConfigContext,D as buildSuiteResult,N as createModel,O as createModelFromInstance,V as deserializeEvaluators,L as detectProvider,c as disableLogger,_ as evaluate,$ as evaluatePrompt,Y as evaluateTestSuite,x as flushAll,h as generateId,Ga as getDistributedTraceHeaders,o as getGlobalClient,z as getTrackContext,e as isTracingActive,a as logger,q as resetGlobalClient,f as resetTracingToConfigDefault,ya as resolveEvaluators,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,P as resolveModel,Z as runTests,U as serializeEvaluators,p as setGlobalClient,b as setLoggerLevel,d as setTracingActive,A as track,za as validateEvaluators,Aa as validateExecutionPolicy,Ha as z}from'./chunk-T4MNYA6L.js';Ia();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Ca}from'./chunk-
|
|
1
|
+
import {Ca}from'./chunk-T4MNYA6L.js';export{B as DEFAULT_EXECUTION_POLICY,Ba as TestSuite,C as TestSuiteResult,D as buildSuiteResult,V as deserializeEvaluators,Y as evaluateTestSuite,W as resolveExecutionPolicy,X as resolveItemExecutionPolicy,Z as runTests,U as serializeEvaluators}from'./chunk-T4MNYA6L.js';Ca();
|