opik 1.8.101 → 1.9.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.cjs +15 -15
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +23 -23
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -668,6 +668,8 @@ interface ProviderApiKeyWrite {
|
|
|
668
668
|
provider: ProviderApiKeyWriteProvider;
|
|
669
669
|
apiKey?: string;
|
|
670
670
|
name?: string;
|
|
671
|
+
/** Provider name - to uniquely identify custom providers (e.g., 'ollama', 'vllm'). Should not be set for standard providers (OpenAI, Anthropic, etc.). */
|
|
672
|
+
providerName?: string;
|
|
671
673
|
headers?: Record<string, string>;
|
|
672
674
|
configuration?: Record<string, string>;
|
|
673
675
|
baseUrl?: string;
|
|
@@ -683,6 +685,8 @@ interface ProviderApiKeyWrite {
|
|
|
683
685
|
interface ProviderApiKeyUpdate {
|
|
684
686
|
apiKey?: string;
|
|
685
687
|
name?: string;
|
|
688
|
+
/** Provider name - can be set to migrate legacy custom LLM providers to the new multi-provider format. Once set, it cannot be changed. Should only be set for custom LLM providers. */
|
|
689
|
+
providerName?: string;
|
|
686
690
|
headers?: Record<string, string>;
|
|
687
691
|
configuration?: Record<string, string>;
|
|
688
692
|
baseUrl?: string;
|
|
@@ -1048,6 +1052,8 @@ interface GetSpansByProjectRequest {
|
|
|
1048
1052
|
stripAttachments?: boolean;
|
|
1049
1053
|
sorting?: string;
|
|
1050
1054
|
exclude?: string;
|
|
1055
|
+
fromTime?: Date;
|
|
1056
|
+
toTime?: Date;
|
|
1051
1057
|
}
|
|
1052
1058
|
|
|
1053
1059
|
/**
|
|
@@ -1135,6 +1141,8 @@ interface GetSpanStatsRequest {
|
|
|
1135
1141
|
traceId?: string;
|
|
1136
1142
|
type?: GetSpanStatsRequestType;
|
|
1137
1143
|
filters?: string;
|
|
1144
|
+
fromTime?: Date;
|
|
1145
|
+
toTime?: Date;
|
|
1138
1146
|
}
|
|
1139
1147
|
|
|
1140
1148
|
/**
|
|
@@ -1152,6 +1160,10 @@ interface SpanSearchStreamRequestPublic {
|
|
|
1152
1160
|
lastRetrievedId?: string;
|
|
1153
1161
|
/** Truncate image included in either input, output or metadata */
|
|
1154
1162
|
truncate?: boolean;
|
|
1163
|
+
/** Filter spans created from this time (ISO-8601 format). Must be provided together with 'to_time'. */
|
|
1164
|
+
fromTime?: Date;
|
|
1165
|
+
/** Filter spans created up to this time (ISO-8601 format). Must be provided together with 'from_time' and must be after 'from_time'. */
|
|
1166
|
+
toTime?: Date;
|
|
1155
1167
|
}
|
|
1156
1168
|
|
|
1157
1169
|
/**
|
|
@@ -4177,6 +4189,8 @@ interface ProviderApiKeyPublic {
|
|
|
4177
4189
|
provider: ProviderApiKeyPublicProvider;
|
|
4178
4190
|
apiKey?: string;
|
|
4179
4191
|
name?: string;
|
|
4192
|
+
/** Provider name - to uniquely identify custom providers (e.g., 'ollama', 'vllm'). Should not be set for standard providers (OpenAI, Anthropic, etc.). */
|
|
4193
|
+
providerName?: string;
|
|
4180
4194
|
headers?: Record<string, string>;
|
|
4181
4195
|
configuration?: Record<string, string>;
|
|
4182
4196
|
baseUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -668,6 +668,8 @@ interface ProviderApiKeyWrite {
|
|
|
668
668
|
provider: ProviderApiKeyWriteProvider;
|
|
669
669
|
apiKey?: string;
|
|
670
670
|
name?: string;
|
|
671
|
+
/** Provider name - to uniquely identify custom providers (e.g., 'ollama', 'vllm'). Should not be set for standard providers (OpenAI, Anthropic, etc.). */
|
|
672
|
+
providerName?: string;
|
|
671
673
|
headers?: Record<string, string>;
|
|
672
674
|
configuration?: Record<string, string>;
|
|
673
675
|
baseUrl?: string;
|
|
@@ -683,6 +685,8 @@ interface ProviderApiKeyWrite {
|
|
|
683
685
|
interface ProviderApiKeyUpdate {
|
|
684
686
|
apiKey?: string;
|
|
685
687
|
name?: string;
|
|
688
|
+
/** Provider name - can be set to migrate legacy custom LLM providers to the new multi-provider format. Once set, it cannot be changed. Should only be set for custom LLM providers. */
|
|
689
|
+
providerName?: string;
|
|
686
690
|
headers?: Record<string, string>;
|
|
687
691
|
configuration?: Record<string, string>;
|
|
688
692
|
baseUrl?: string;
|
|
@@ -1048,6 +1052,8 @@ interface GetSpansByProjectRequest {
|
|
|
1048
1052
|
stripAttachments?: boolean;
|
|
1049
1053
|
sorting?: string;
|
|
1050
1054
|
exclude?: string;
|
|
1055
|
+
fromTime?: Date;
|
|
1056
|
+
toTime?: Date;
|
|
1051
1057
|
}
|
|
1052
1058
|
|
|
1053
1059
|
/**
|
|
@@ -1135,6 +1141,8 @@ interface GetSpanStatsRequest {
|
|
|
1135
1141
|
traceId?: string;
|
|
1136
1142
|
type?: GetSpanStatsRequestType;
|
|
1137
1143
|
filters?: string;
|
|
1144
|
+
fromTime?: Date;
|
|
1145
|
+
toTime?: Date;
|
|
1138
1146
|
}
|
|
1139
1147
|
|
|
1140
1148
|
/**
|
|
@@ -1152,6 +1160,10 @@ interface SpanSearchStreamRequestPublic {
|
|
|
1152
1160
|
lastRetrievedId?: string;
|
|
1153
1161
|
/** Truncate image included in either input, output or metadata */
|
|
1154
1162
|
truncate?: boolean;
|
|
1163
|
+
/** Filter spans created from this time (ISO-8601 format). Must be provided together with 'to_time'. */
|
|
1164
|
+
fromTime?: Date;
|
|
1165
|
+
/** Filter spans created up to this time (ISO-8601 format). Must be provided together with 'from_time' and must be after 'from_time'. */
|
|
1166
|
+
toTime?: Date;
|
|
1155
1167
|
}
|
|
1156
1168
|
|
|
1157
1169
|
/**
|
|
@@ -4177,6 +4189,8 @@ interface ProviderApiKeyPublic {
|
|
|
4177
4189
|
provider: ProviderApiKeyPublicProvider;
|
|
4178
4190
|
apiKey?: string;
|
|
4179
4191
|
name?: string;
|
|
4192
|
+
/** Provider name - to uniquely identify custom providers (e.g., 'ollama', 'vllm'). Should not be set for standard providers (OpenAI, Anthropic, etc.). */
|
|
4193
|
+
providerName?: string;
|
|
4180
4194
|
headers?: Record<string, string>;
|
|
4181
4195
|
configuration?: Record<string, string>;
|
|
4182
4196
|
baseUrl?: string;
|