objectiveai 1.1.5 → 1.1.7
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.ts +20 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -229,7 +229,7 @@ export declare namespace Chat {
|
|
|
229
229
|
}
|
|
230
230
|
interface Tool {
|
|
231
231
|
role: "tool";
|
|
232
|
-
content
|
|
232
|
+
content: RichContent;
|
|
233
233
|
tool_call_id: string;
|
|
234
234
|
}
|
|
235
235
|
interface ChatCompletion {
|
|
@@ -576,7 +576,7 @@ export declare namespace Score {
|
|
|
576
576
|
model: string;
|
|
577
577
|
object: "chat.completion";
|
|
578
578
|
usage?: Chat.Completions.Response.Usage;
|
|
579
|
-
weight_data
|
|
579
|
+
weight_data: WeightData | null;
|
|
580
580
|
}
|
|
581
581
|
interface Choice {
|
|
582
582
|
message: Message;
|
|
@@ -911,6 +911,8 @@ export interface ScoreLlmWithoutIndicesWithMetadata extends ScoreLlmWithoutIndic
|
|
|
911
911
|
completion_tokens: number;
|
|
912
912
|
prompt_tokens: number;
|
|
913
913
|
total_cost: number;
|
|
914
|
+
average_confidence: number;
|
|
915
|
+
conformity: number;
|
|
914
916
|
}
|
|
915
917
|
export interface ScoreLlm extends ScoreLlmWithoutIndices {
|
|
916
918
|
index: number;
|
|
@@ -945,7 +947,13 @@ export declare namespace ScoreLlm {
|
|
|
945
947
|
}
|
|
946
948
|
export type MultichatLlmBase = ScoreLlmBase;
|
|
947
949
|
export type MultichatLlmWithoutIndices = ScoreLlmWithoutIndices;
|
|
948
|
-
export
|
|
950
|
+
export interface MultichatLlmWithoutIndicesWithMetadata extends MultichatLlmWithoutIndices {
|
|
951
|
+
created: string;
|
|
952
|
+
requests: number;
|
|
953
|
+
completion_tokens: number;
|
|
954
|
+
prompt_tokens: number;
|
|
955
|
+
total_cost: number;
|
|
956
|
+
}
|
|
949
957
|
export type MultichatLlm = ScoreLlm;
|
|
950
958
|
export declare namespace MultichatLlm {
|
|
951
959
|
function list(openai: OpenAI, listOptions?: Models.ListOptions, options?: OpenAI.RequestOptions): Promise<{
|
|
@@ -976,6 +984,8 @@ export interface ScoreModelWithMetadata extends ScoreModel {
|
|
|
976
984
|
completion_tokens: number;
|
|
977
985
|
prompt_tokens: number;
|
|
978
986
|
total_cost: number;
|
|
987
|
+
average_winner_confidence: number;
|
|
988
|
+
decisiveness: number;
|
|
979
989
|
}
|
|
980
990
|
export declare namespace ScoreModel {
|
|
981
991
|
type Weight = Weight.Static | Weight.TrainingTable;
|
|
@@ -1006,7 +1016,13 @@ export declare namespace ScoreModel {
|
|
|
1006
1016
|
}
|
|
1007
1017
|
export type MultichatModelBase = ScoreModelBase;
|
|
1008
1018
|
export type MultichatModel = ScoreModel;
|
|
1009
|
-
export
|
|
1019
|
+
export interface MultichatModelWithMetadata extends MultichatModel {
|
|
1020
|
+
created: string;
|
|
1021
|
+
requests: number;
|
|
1022
|
+
completion_tokens: number;
|
|
1023
|
+
prompt_tokens: number;
|
|
1024
|
+
total_cost: number;
|
|
1025
|
+
}
|
|
1010
1026
|
export declare namespace MultichatModel {
|
|
1011
1027
|
function list(openai: OpenAI, listOptions?: Models.ListOptions, options?: OpenAI.RequestOptions): Promise<{
|
|
1012
1028
|
data: string[];
|